Hi,
rwx-rwx-rwx root techsupport project
rwx (owner) rwx (groupowner) rwx (others) root( owner) techsupport (groupowner) 
project (file)
r-4 
w-2
x-1
SET UID-----4
SET GID-----2
STICKYBIT---1
How SUID it works for Directory?
Do the below example so, that you can come to know how it works and how to give 
the permissions!!!
create a folder called project in / partition.
rwxr-xr-x root root 350MB project
addusers-------- user1 , user2 , user3 and give the password as the same.
create one group called techsupport.
add those users to techsupport by using usermod -G techsupport user1,user2,user3
rwxr-xr-x root techsupport 350MB project
/#chmod 070 project
---wxr--- root techsupport 350MB project
/#chmod 2070 project
---wxs--- root techsupport 350MB project
login user1 
browse the folder called project you can able to do!!!!!!!!!!!
then create new user called "newuser" as well as password.
try to login to newuser and access project file you can't!!!!!!!!!! so you can 
come to know that why SGID is needs.
it is simple logic that, who ever (users) have permission, they can only access 
the folder. 
Thanks & regards,
ILAMPOORANAN.S
Why ask Why ??

----- Original Message ----
From: narmada1956 <[EMAIL PROTECTED]>
To: [email protected]
Sent: Friday, June 20, 2008 6:05:38 PM
Subject: [LinuxVadaPav] setuidfile, directory


• What are setuid/setgid in relation to file permissions? 
• What are setuid/setgid in relation to directory permissions? 
• What is an inode? 

 


      

[Non-text portions of this message have been removed]


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/linuxvadapav/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/linuxvadapav/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to