LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 10-14-2005, 11:30 AM   #1
kscott121
Member
 
Registered: Jul 2003
Location: NC
Distribution: Fedora,Mepis,Debian
Posts: 84

Rep: Reputation: 15
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
 
Old 10-14-2005, 01:25 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,549

Rep: Reputation: 180Reputation: 180
"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
 
Old 10-14-2005, 09:34 PM   #3
kscott121
Member
 
Registered: Jul 2003
Location: NC
Distribution: Fedora,Mepis,Debian
Posts: 84

Original Poster
Rep: Reputation: 15
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
 
Old 10-15-2005, 10:39 AM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,549

Rep: Reputation: 180Reputation: 180
"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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Group File Permissions Devilin Linux - General 2 10-22-2005 07:06 PM
Frustrated, file permissions sharing files sporks Linux - General 9 04-20-2005 08:37 PM
group permissions mikeghet Linux - Newbie 1 12-06-2004 03:49 AM
file sharing with windows, permissions axis Linux - Networking 2 04-08-2003 09:15 AM
group permissions once Linux - Newbie 5 06-02-2002 03:09 AM


All times are GMT -5. The time now is 10:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration