Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot access shared folder 1

Status
Not open for further replies.

fayevalentine

Programmer
Jun 2, 2004
38
0
0
MX
Hi, here is my problem

I have a folder under user1 home directory

/home/user1/wanttosharefolder

I created a group called 'histo'

I added user1 and user2 to group 'histo'

usermod -a -G histo user1
usermod -a -G histo user2

I changed permissions to whattosharefolder (this folder was initially created by root)

chown user1:histo whattosharefolder/

Finally I change permissions to folder to

chmod -R ugo+rw whattosharefolder/

but when I log in with user2 and try to write to /home/user1/whattosharefolder I get: permission denied message.


Did I do something wrong?
anything else?


Thanks in advance.

Regards.




 
Just a guess:
In order to access /home/user1/whattosharefolder, user2 will first need permission to access /home/user1.
chmod ugo +x /home/user1

hope this helps
 
Well, to limit access to the /home/user1 directory to only those in the group, it should be...

Code:
chmod [highlight #FCE94F]ug[/highlight] +x /home/user1

Execute permission is needed in the full path to access a subdirectory.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top