Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-12-2007, 10:56 AM   #1
Registered: Jul 2006
Distribution: HP-UX
Posts: 46

Rep: Reputation: 15
folder permissions


I have 2 users on my system say "A" and "B".

Now user "A" will install a product named "productA" under /opt Example: "/opt/productA"

Now I want to give permissions to user "B" to be able to execute binaries & access files in folder "productA" created by user "A".

I gave permissions as user "A" to "productA" as follows:

chmod 557 /opt/productA

Howevere I am not able to access files or binaries logged in as user "B". file permission error.

Do I need to set umask somewhere?

Old 04-12-2007, 11:52 AM   #2
Senior Member
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Rep: Reputation: 47
User b needs read access to the directory the file is in, and probably all parent directories up from /.
Old 04-12-2007, 12:31 PM   #3
Registered: Jan 2007
Distribution: Slackware
Posts: 341

Rep: Reputation: 31
 chmod 0755 /opt/productA
Old 04-12-2007, 12:39 PM   #4
LQ Newbie
Registered: Nov 2005
Location: New York City
Distribution: RHEL3,4,5
Posts: 29

Rep: Reputation: 15
An easier way to do it is to make user A and B members of the same group, them change the permissions on the directory to g+rx.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
folder permissions lpn1160 Linux - General 4 10-29-2006 08:46 AM
Folder Permissions HeReigns Linux - Networking 5 03-08-2006 03:36 AM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 05:23 PM
folder Permissions issinho Linux - Security 3 07-10-2005 02:35 PM
Folder permissions Canam97 Mandriva 7 03-10-2005 11:01 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:32 AM.

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