SunQuest
           Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old May 2nd, 2002, 03:54 PM
rm-rf/ rm-rf/ is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 13 rm-rf/ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
File permissions

Lets see if I can explain this clearly. Suppose I have a /home/finance directory. I want everyone in the group finance to have full access to this directory. Thats the easy part, I can just chgrp. However, i have another user, guest, who needs read access to the files in that directory, and all subdirs. I dont want /home/finance readable by everyone, just by the finance group and the user guest. Does linux support something like an ACL on solaris? Any ideas would be welcomed.


p.s. sure i could make guest the owner of the directory, but i dont want him to be able to change permissions, and if i have more than one person who needs read access, this wouldnt work.

Reply With Quote
  #2  
Old May 2nd, 2002, 04:10 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Then make /home/finance owned and grouped by finance (drwxr-x--- 750) and invite guest to finance group in /etc/group like so:

finance:*:1001:finance,guest

Reply With Quote
  #3  
Old May 2nd, 2002, 05:20 PM
rm-rf/ rm-rf/ is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 13 rm-rf/ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I had thought about that. However I want the group finance to have read and write access. And the user, guest, should only have read permission. Im looking at it from a business perspective, supose guest was a manager who needed to be able to read the file, but wasnt trusted to have write access.


p.s. i might have failed to mention that the group finance needed write access, sorry =)

Reply With Quote
  #4  
Old May 2nd, 2002, 06:15 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> However I want the group finance to have read and write access

They do have read+write access to files and dirs under /home/finance when they can su finance.

>> And the user, guest, should only have read permission

You know what SEARCH ACCESS is? That's Read + Execute on a directory. When /home/finance has drwxr-x--- (750) owned and grouped by finance nobody else has SERACH ACCESS to /home/finance directory, EXCEPT when you invite guest to finance's group then they will have just READ access, still no WRITE access unless they have the permission to su finance.
That said, people in finance group still shouldn't have WRITE access in /home/finance, they'd need to su finance. People in guest group can cd to /home/finance and READ files but they need password to su finance and if you don't give them, then they can't WRITE and that's exactly what you need to do.
All the files permission remain the same -rw-r--r-- (644). You don't even need to change the umask at all.
And of course, you can use sudo instead of su.

Last edited by freebsd : May 2nd, 2002 at 06:19 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > File permissions


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway