[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

retaining file permissions and ownership across sub-directories in Linux


I'm not sure if this is the right forum for this question. If it is
not, I would be grateful to anyone that would be kind enough to point
to me appropriate forum so that I can take this query there instead.

I need to retain the same file permissions and ownership across
sub-directories in Linux.

I've got a 2nd hard disk (160 GB) and mounted in /vol1

I have 10 users and 2 groups on this system. These users access the
system from their disk less terminals (LTSP)...

Inside /vol1 I have created two folders
- sales
- finance

The two groups I have created on the system is sales and finance and a
few users belong to sales, a few to finance and a few to both.

I have set the owner of sales to "root:sales" and "root:finance" to
finance folders respectively.

The permissions on both folders are set to 775. However, when users
create files and folders within this folder the owners, groups and
permissions are not the same as the parent folder.

I was told by someone to do 'chmod ug+s sales finance' and that will
retain the permissions and user and group ownership as the parent
folders no matter which user logs in to save files within.

However, after trying that, I wasn't successful.

Any ideas on how to achieve what I'm trying to do?

Maybe there is another more obvious and simple way to do this and I'm
trying to do this in a very complicated way?

Any help would be great.


Reply to: