Quote:
Originally Posted by zillur
Thank you very much for a quick reply. I also don't know anything on partitioning or LVM. In my current system, I want users will login normally and cd to /gondor or /mordor to use /dev/sdg1 or /dev/sda1. Is it possible without changing anything? Do you think "chown user /mordor" will be sufficient?
Best Regards
Zillur
|
where /gondor or /mordor I take it are just directories where you want others to work in. then all they have to do is cd into it. and yes just change its permissions.
you can keep control of it while giving certain permissions to others as well to either read, or read write, or read, write and execute within any directory.
Your line of thought is correct in thinking that chown will work. Their is also many other ways to get this done.
Keeping in mind this is a root user permissions that can only do this with others stuff. and a user permissions that can do this with one own "stuff".
Code:
chmod u=rwx,g=rx,o=r /DirectoryName
chmod u=rwx,g=rx,o=r file
as you see it can be broken into parts to set permission onto an item in any fashion one wants as long as it stays within the limits given that allows this to be done.
Code:
chown user:group /directory
chown root:users /mordor
chmod u=rwx g=r o-rwx /mordor
You can still allow root to own the directory so no one else can delete it. then do this in any fastion you wish.
User gets read, write, and execute,
Group gets read only,
Other gets nothing, the minus '-' removes permissions. the equal '=' adds permissions.
Making sure that the users that you want to use that directory are assigned to the group.
Code:
usermod -aG users UserName
u = User (owner)
g = Group
o = Others or anyone else that can get inside of a directory, but when the other has all permissions removed then what takes place?
https://www.linode.com/docs/tools-re...ons-with-chmod