LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   File/group permissions and sharing (https://www.linuxquestions.org/questions/linux-software-2/file-group-permissions-and-sharing-373054/)

kscott121 10-14-2005 11:30 AM

File/group permissions and sharing
 
I have a user on a Fedora FC2 system user1 which I want to be able to have ful access to a new second users files (call him user2). I added the second user using the graphical tools. Fedora 2 created a new user and group (both user2). I then changed user1 to be a member of both user1 he (was already) and user2. I then changed the directory permissions to /home/user2 to be 770 (rwerwe---).
BUT, User1 still cannot access user2 files.

Would someone please point out the error of may ways?
I must be leaving something out but I can't figure out what.

Here is ls-l for the /home directory
[kens@localhost home]$ ls -l
total 20
drwx------ 4 ftpuser ftpuser 4096 Jun 15 11:21 ftpuser
drwxrwx--- 3 user2 user2 4096 Oct 14 11:30 user2
drwx------ 11 user1 user1 4096 Oct 13 14:04 user1
drwx------ 60 kens kens 4096 Oct 14 11:33 kens


Thanks in advance.
Ken

jailbait 10-14-2005 01:25 PM

"I then changed the directory permissions to /home/user2 to be 770 (rwerwe---)."

Did you also change the permissions of all of the directories and files in the /home/user2 tree to 770? Did you change the umask of user2 so that new files will have permissions of 770?

----------------------
Steve Stites

kscott121 10-14-2005 09:34 PM

At that point there were as yet no files directories there to change. I don't know how to change the umask. Where is it? I see it under the man page for bash but do you only have to run the command one single time and it will affect file creations going forward?
I presume the command I want in this case would be just
$ umask 770
do I run it as root or as user2? Thanks in advance.
Ken Scott

jailbait 10-15-2005 10:39 AM

"I presume the command I want in this case would be just
$ umask 770"

umask turns off permissions. So the command that you want is:
umask 0007

"do I run it as root or as user2?"

You issue the umask command as the user whose permissions you are trying to set which is user2. You can issue it every time user2 logs in by putting the command in user2's .bashrc.


---------------------------
Steve Stites


All times are GMT -5. The time now is 04:02 PM.