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

Folder Permissions

Status
Not open for further replies.

felix001

Technical User
Nov 15, 2008
102
0
0
GB
My goal is set my data folder to create any new files or folders which are moved or created within a permissions setting of 775.

Ive been looking into umask and sticky bits, but as yet cannot see anything that would help me reach my goal...

Can anyone help.. ?
 
Another idea... what type of filesystem are the files being placed on? If it supports ACLs, you can set default file creation masks for a specific directory using them (see the man pages for getfacl and setfacl).

Annihilannic.
 
im running rhel 5, it seems strange that it is so un`well documented to do such a fairly simple thing...

Thanks for everyones help so far ...

 

Annihilannic suggested using

Code:
scp -p

     -p      Preserves modification times, access times, and modes from the
             original file.

Does that not work?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top