LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
LinkBack Search this Thread
Old 08-20-2008, 05:07 AM   #1
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 565

Rep: Reputation: 30
File permission issue


Hi all,


I need a help to fix the permission of directories in various locations.

First , i have user A, whose home directory is /home/A(say), where I have two more users B and C.(who has their corresponding home dir as /home/B and /home/C.

In /home/A , I need to share a directory for all the three(A,B&C).

say /home/A/share.

It was made permission to "drwxrwxrwx" . and it is accessible to B. But not accessible by C.


I am forced into 2 conditions:

1.Not to go for stickybit.
2.Not to move the dir out of /home/A.

Another issue with this is,that this was already setup . The ownership for this directory is with user C, but the directory is not able to read/write/execute by C.
I can login as A/B/C, but not as root. Let me share your thoughts, to help me to solve this.

I need user C to read and execute the files inside /home/A/share.


Thanks
 
Old 08-20-2008, 05:53 AM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 49
To be able to traverse the directories of A, C needs 'x' permission on all top-level directories. If 'A' and 'C' are members of the same group, then a group 'x' on the directories is sufficient; otherwise you need an 'x' for 'others'. For executing files, C will need 'r' and 'x' permission.
 
Old 08-20-2008, 06:55 AM   #3
ZAMO
Member
 
Registered: Mar 2007
Distribution: Redhat &CentOS
Posts: 565

Original Poster
Rep: Reputation: 30
Thank You pinniped.,,

It is the /home/A ,not having the x for others as C belongs to different group.
But I wonder how it works for user B as he also not belongs to the group of A.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Permission Issue With Shell Script and .Jar File timmit Slackware 3 06-02-2008 07:33 AM
FTP File Permission Issue KrGAce Suse/Novell 1 01-11-2006 06:11 PM
File System / Permission Issue anand_kt Linux - Security 5 09-15-2005 01:11 PM
script execution - file/directory permission issue serksimper Linux - Enterprise 1 08-10-2005 03:01 PM


All times are GMT -5. The time now is 05:32 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
Open Source Consulting | Domain Registration