Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
"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?
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
"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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.