View previous topic :: View next topic |
Author |
Message |
Gentling n00b
Joined: 21 Jul 2012 Posts: 16
|
Posted: Fri Jul 19, 2013 1:36 am Post subject: Common File permissions. |
|
|
I logged in as non-root I found I couldn't execute any commands (but that's not the topic of this post). I now realize the necessity of running chown on my filesystem but am having trouble deciding what permissions (read, write, and execute) are necessary for what groups (root, user, and world). Also are there any directories that warrant separate configuration schemes (hence you can't set the same permissions for the whole file system). If so then what they?
It would help if I knew the minimal configuration necessary for a typical desktop gentoo installation, and what is the most practical.
Posting your own permission setup (such as chown xxx /usr) along with your reasoning behind it would also be of interest. |
|
Back to top |
|
|
666threesixes666 Veteran
Joined: 31 May 2011 Posts: 1248 Location: 42.68n 85.41w
|
Posted: Fri Jul 19, 2013 3:03 am Post subject: |
|
|
its a complex web... step 1 know your $PATH, step 2 get a sane umask, step 3 learn very well chown / users / groups.... id leave the system as is for now... see what the path is, etc. umask thats common is 0022 (shown by running umask)
common paths are for root /bin, /sbin, /usr/bin, /usr/sbin
common paths for users are /bin, /usr/bin
sometimes systems have /usr/local/bin & /usr/local/sbin & /opt/bin... its where it looks for programs, if i run "chown" it is in the path, /bin/chown if its not in the path it requires ./ (if your in its current directory, ie /opt/bin) |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|