General :: File's Group Changing When Replaced Via Scp
Oct 26, 2010
on my Fedora test server, there is a webdev group for all developers and the files under /var/www are owned by apache:webdev. Each developer is set up per normal, with each getting his/her own entry in /etc/group, then I add them to the webdev group (all from the command line). Things seemed OK, but when I edited a file as me the other day and updated it via scp, the ownership and group changed to that of my user, preventing a second dev from updating it later. How can I make sure that the file remains editable by all in the webdev group regardless of who updates it? Since it's a test server, the permissions are fairly loose at 775.
View 2 Replies
ADVERTISEMENT
Oct 19, 2009
i want secondary users can able to change the files permissions of primary group?user MAC is having www as a primary and httpd as secondary group. But he want to change the file permissions (chmod) httpd group files. Is it possible or not? I think its not possible. If it`s possible then let me know how?
View 3 Replies
View Related
Feb 8, 2011
I have a group (GROUP) with a number of users. I recently added a new user (NEW). NEW is able to read but not write group files, whereas all the other users in the group can read and write to the group files. The permissions for the group files indicate that all members of group should have write permission -rwxrwxr-x
/etc/group indicates that NEW is a member of GROUP
...
GROUP:x:501:GROUP,OLD,OLD2,OLD3,OLD4,....,NEW
[code]....
Don't know if it matters, but both OLD and NEW write to the GROUP files over an internet connection. why NEW can't write to GROUP files? Is there a maximum number of members in a group that I might have exceeded?
View 2 Replies
View Related
May 18, 2010
Does anyone know how to change the primary group on a user without changing the password? I've tried updating the /etc/passwd and running usermod -g group userBoth of those does change the group but somehow it messes up the password so the user cannot get in with the same password.
View 5 Replies
View Related
Jan 16, 2010
just trying to learn linux here and have some comfusing moments.it is my understanding that if you own directories and files you maychange the group, ownership, and permissions on all of these as you desire.however, in my case I cannot make any changes in my setup on group, ownershipor permissions on any of my files or directories.get error message <operation not permitted>. I know as root you ar supposed tobe able to do anything you desire, however in my case I can go in as root andtry the same commands with the same results. it is as if I am locked out ofsystem as far as any changes are concerned.on my jump drive I have:
total 83832
drwxr-xr-x 26 jevans root 16384 1969-12-31 19:00 .
drwxrwxr-x 9 jevans jevans 4096 2010-01-15 12:51 ..
[code]...
View 14 Replies
View Related
Aug 27, 2011
I turned my laptop in for repairs. I used someone else's USB drive to hold my pictures etc from that computer. I may have replaced the "pictures" folder tat was already on there, but I'm not sure if it was there in the first place. (Doesn't remember the "Are you sure you want to replace..." warning <.< >.>) I enabled hidden files, and there was a folder called .Trashes, instead of what you'd normally get. I copied my pictures onto my desktop, and then cleared the ones on the USB drive (left the folder). There was a folder named .000Trash-, or whatever it usually is. Only my pictures are in there. I'm confused, and don't tell me the pictures that were originally on the USB are gone forever.There's a tool for Windows, called Glary's Uilities that can get them back, supposedly. Not running windows, though
View 4 Replies
View Related
Jun 11, 2010
I have a CentOS 5.4 storage server with LVM/RAID1 setup, I need to change the motherboard from Gigabyte GA-G31M-ES2C to Asus P5K-E. After the switch, I got kernel panic during boot (the following is copied manually from the screen, is these stuff recorded somewhere in the log? I checked /var/log/messeges but didn't find anything):
Code:
Scanning and configuring dmraid support
md: Autodetecting RAID arrays
md: autorun....
md: ... autorun DONE
[code]....
I used CentOS CDROM and entered rescue mode to take a look, some findings:
1. Initially the drive label is different from my old system, for example the old sdb became sdc. I switched the SATA cable around to get this sorted out except one IDE drive (originally hda, now hde), but this drive is not used in RAID
2. After the label is fixed, I used mdadm to check RAID1 devices (md0/1/2/3), it seems each device is missing a drive (originally md0 is created by sda1+sdb1, now it's just sdb1, and thus degraded). I used mdadm to re-add the missing drive, mdadm --detail shows everything is fine now.
3. Step 2 didn't fix the error, so I "chroot /mnt/sysimage/" and took a look around, all the directories seem fine, include the ones on "main" volume group. vgscan/vgdisplay/lvdisplay shows all the vg and lv as they should be.
View 4 Replies
View Related
Jun 11, 2010
This is about ubuntu 10.04
I can import projects to my cvs repository only when the repository set to group owner cvs. Which is fine to me.
But I found the project folder/files that I imported into the repository have group name other than cvs (in fact, that's my username). And that prevents others to check out my code.
View 3 Replies
View Related
Oct 17, 2009
I'm studying Linux and just started reading about permissions and ownership. My question is how would you have multiple users or groups given access to a certain directory? When doing an ls -l I see the owner, group and others that have permissions that have access to the file or directory. But what if I need multiple different groups access to a particular file or directory all with different permissions?
View 2 Replies
View Related
Mar 10, 2011
I was doing a tutorial on scripting in bash. I saved my file on the desktop and I cannot seem to get to that file to execute it. Here is what I have been using:
I try cd Desktop says that there is no such directory.
I tried /home/me/Desktop same thing.
View 5 Replies
View Related
Aug 5, 2010
I Want to be able to let my girlfriend view my pictures folder while at the same time keeping my sister out. So I created a group "JessAndI" and made myself and her apart of that group. I changed the group of the directory recursively to "JessAndI" and gave the permissions to 770. She still isn't able to access or even view the directory unless i change the permissions to allow others whether it be 774 or 777. Am i doing something wrong? I've checked and double checked to make sure she is part of the group and the group is the group on the directory and all the sub-directories and files.
View 2 Replies
View Related
Jan 20, 2011
i want to set permission type "write" on a file to a particular user in a group of users ( not all users in that group). chown is changing a user to root , but i want to set say permission of "write" only to a user 1 in group staff which contains 10 users 1 , user 2 ...user 10.
View 3 Replies
View Related
Sep 4, 2009
I'm on a regular Fedora 9 desktop computer with an ext3fs filesystem.
I'm trying to give myself access to /dev/ttyS0. This is because I'm developing code that uses a serial port. While I'm developing this code I don't want to be continually working as super user. I have the following information about /dev/ttyS0:
Code:
So as root I added myself (username freddy) to the group uucp. This is just temporary, for while I work on this code and try different stuff as user freddy. Once the code is established and I have a single program with a fixed name, I plan to give myself an entry in /etc/sudoers that will allow me to run the finished program.
Here's the info on user freddy:
Code:
The problem then is that now if I try to use /dev/ttyS0 I can't.
Code:
I thought that if I was a member of group uucp which is associated with /dev/ttyS0 that I would be given rw access to /dev/ttyS0. What am I missing here?
What the c stands for in the ls -l listing?
View 2 Replies
View Related
Apr 3, 2009
I have several directories, each owned by root and a group of the same name,By setting the sgid bit, I made sure that newly created files and directories are owned by the correct group, and that directories have the sgid bit set too.On each newly created directory or file, the permissions are set to 755. This is because this is the default umask, and I cannot change a users umask. I actually only want files created below a particular directory to have group write access, inheriting this behaviour to newly created directories properly.I'm not on samba or NFS, I have to do this for SSH users.The filesystem is ext3.I started to fool around with ACLs, but couldn't find what I was looking for.
View 3 Replies
View Related
Aug 22, 2010
I need to create a group that has the same permissions as the users group. Can I have the new group be a member of the "users" group to inherit its permissions?
View 4 Replies
View Related
Sep 17, 2009
I am trying to automate ftp to transfer files from windows to Linux server automatically and my script looks like this .
@echo off
SET CUSTOM=/apps12i/oracle/KIRAN/apps/apps_st/appl/custom/12.0.0/reports/US
echo user oracle> ftpcmd.dat
[code]....
Any files we transfer through ftp from windows , their default permissions to be set 755 automatically . We are using Red Hat Enterprise Linux AS release 4 (Nahant Update 7) .
View 1 Replies
View Related
Dec 1, 2010
I like to redirect the print output to a file for later analysis and I was able to do this in an old Fedora 9 but with the new installation of Fedora 13 or Ubuntu 10 it is not working! I always get an error when selecting a directory/filename like file:///tmp/output.prn.
How can I fix this problem?
View 3 Replies
View Related
Jan 18, 2011
Is there any way to change the name "a.out" of executable file to any other name of our choice..
View 5 Replies
View Related
May 12, 2011
My shell script runs from the command line, but fails in cronjob. /bin/sh: asper.sh: Permission denied
-rw-r--r-- asper.sh I guess the permission should look like '-rwxr-xr--' How can I change the permission to be like that?
View 2 Replies
View Related
Jan 4, 2010
I first installed linux as ubuntu version 9.04 straight off of a Computer Active CD and liked it so started to delve into file permissions and authorisations, simple stuff I suppose just so I could feel my way around things for a while. Using the built in Ubuntu software centre I downloaded and installed a prog which handles authorisations and I found that very helpful but then through the update manager I installed the latest distribution update (9.10) and now find that the authorisation software only lists a couple of things that I can get to and consequently every time I mount one of my hard disks I'm asked for my admin password even though I am logged in as administrator which is a hassle,
a small one but there all the same, as a newbie I realise it must be me not understanding something but I just dont know what, also in the previous version right clicking on the logging out panel gave you an option to remove the 60 second shutdown or restart delay and that has disappeared in the new version, again its really only just a nuisance thing but I find that sorting out this sort of thing will help me to understand the system
View 5 Replies
View Related
Oct 11, 2010
I created a folder structure as root and now need to transfer ownership to an ordinary user.
This question is linked to this one - [URL]
I have a folder /srv/app-share that needs to be visible/writeable to user1
I tried (as root):
root@server [/]# chown -R user1:user1 /srv/
But that did not work.
View 1 Replies
View Related
Nov 23, 2010
suppose i have two file with same name fstab one file is located in /etc and the other is located in /root/ If i make a change in /etc/fstab file the changes has to reflect in /root/fstab . Is there any command to do this?
View 6 Replies
View Related
Oct 14, 2010
I`ve been given a project to design a program that will interface with a hardware device through the parallel port.And so far it`s not going go. I managed to write the programe an compiled it, but when runing it the compiler says: 'changing ownership of'and then the file name then it continues to say, 'operation not permitted'.
View 9 Replies
View Related
May 27, 2010
I know this command exists I just can't seem to find it. I want to see the last few lines of a file as more are added in real time. Can someone point me in the right direction?
View 2 Replies
View Related
Dec 22, 2009
I have a problem with Fedora Red Hat (2.6.23.17), every time I restart the server, the eth configuration is deleted and replaced by a new one. For example, my configuration:
eth0 --> static ip address
I restart the server, then eth0 file is deleted and replaced by eth1 with default configuration. I try to create an eth0 and give it the static ip, I stop the network I get at the end: SIOCGIFFLAGS: No such device
But when I start it back I get: bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization. However, if I configured the static ip to eht1 it will work perfectly. But I still get "SIOCGIFFLAGS: No such device" when I stop it.
View 1 Replies
View Related
Oct 18, 2010
I was having a discussion with someone who asked me whether a Linux OS has to be rebooted when the hosts file is modified. From personal experience, on Windows I change the file but don't reboot and I've seen others do the same thing. I assume Linux has no exception(s), but is there any reason why a reboot is not required (to at least justify my actions)?
View 2 Replies
View Related
Nov 22, 2010
I have a really strange problem. I have a few files in a large directory that I want to make readable by everyone. So I try this:
sudo find readme* -not -perm -o+r -exec chmod +r {} ;
and get this:
sudo: unable to execute /usr/bin/find: Success
I don't know why it says Success, because the permissions were not changed. I verified by typing this:
find readme* -not -perm -o+r -exec ls -l {} ;
and get something like
-rw------- 1 root root 536871076 Nov 22 14:06 readme_20101122200429
-rw------- 1 root root 536871892 Nov 22 14:08 readme_20101122200642
-rw------- 1 root root 293458128 Nov 22 14:10 readme_20101122200859
as a last resort, I tried:
sudo chmod +r *
and got:
sudo: unable to execute /bin/chmod: Success
and again Success really means fail. So, I gave up and logged in as root and tried:
find readme* -not -perm -o+r -exec chmod +r {} ;
This time it worked. Why?
EDIT: /etc/sudoers looks like:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
##Me
user1 ALL=(ALL) ALL
View 2 Replies
View Related
Jul 28, 2011
I replaced windows 7 with ubuntu 11.04 and cannot figure out how to get on the internet. Smeone told me to go to SYSTEM, ADMINISTRATION, NETWORKING then select connections tab. These will not show up on this system. Perhaps someone can tell me if I need to redownload the ubuntu or what.
View 3 Replies
View Related
May 24, 2010
i have to grep a series say 98782 from a group by series in a file ,how can i grep the series.
View 6 Replies
View Related
May 28, 2011
I have an Ubuntu development server and a Windows 7 workstation. I use Windows Gvim to edit files on the linux server, over a samba connection.Saving files from Windows change the Linux permissions in weird way depending on the Windows app I'm using and also depending on whether there's a file extension or not.Here are some testsNo extension; Notepad2: 644 to 764
matt@mattserver ~ % ls -l testfile
-rw-r--r-- 1 matt matt 0 2011-05-28 07:09 testfile
--- Save from Windows Notepad2 over network ---
[code]....
View 1 Replies
View Related