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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unix Directory Permissions..

Status
Not open for further replies.

AdamCoombs

Technical User
May 22, 2002
51
GB
I have to mirror these permissions (see below)on another directory..
Im ok with everything but the T and the + at the end of it...
I know that normally a "t" is the sticky bit, but i though that was a lower case "t" not "T".

how do i set that and the +?

I current permissions on the dir are
drwxrwx--T
and i want it to look like...
drwxrwx--T+

cheers
Adam
 
Capital T in sticky bit means sticky bit on execute permissions off, Lowercas t has both stick bit and execute access. The + means you have an access control list set on this file. Type getfacl <dir> to see what is set. ACLs are quite a big topic see the getfacl setfacl man pages. Basically they provide an extra level of granularity for permissions allowing specific users and groups to access files.

PS. cp -pr dir1 dir2 will replicate the directory permissions (the -p flag) as it copies it.
 
Capital T in sticky bit means sticky bit on execute permissions off, Lowercase t has both sticky bit and execute access. The + means you have an access control list set on this file. Type getfacl <dir> to see what is set. ACLs are quite a big topic see the getfacl setfacl man pages. Basically they provide an extra level of granularity for permissions allowing specific users and groups to access files.

PS. cp -pr dir1 dir2 will replicate the directory permissions (the -p flag) as it copies it.
 
To copy the permissions of one file to another (with or without an ACL list) you can use:

[tt]getfacl originalfile | setfacl -f - destinationfile[/tt]

The &quot;-&quot; tells setfacl to read the permissions from stdin.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top