homepage Welcome to WebmasterWorld Guest from 54.166.10.100
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
Linux Debian Lenny - Default Permissions
g1smd




msg:4001727
 8:49 pm on Oct 5, 2009 (gmt 0)

I'm looking at a server running Debian Lenny where a scripting problem has changed all the root permissions to 755.

The one folder I know that has to be 777 has already been changed back to that.

Can anyone provide a list as to what the default permissions for all the other folders should be, namely:

bin boot dev etc home initrd lib lost+found media mnt opt proc root sbin selinux srv sys tmp usr var

 

g1smd




msg:4002511
 10:35 pm on Oct 6, 2009 (gmt 0)

It is a fairly popular install isn't it?

g1smd




msg:4005726
 6:23 pm on Oct 12, 2009 (gmt 0)

Anyone ?

bkeep




msg:4006605
 11:04 pm on Oct 13, 2009 (gmt 0)

I don't know why Debian would be any different but the folders in my root are all 755 or lower not 777. 777 is world writable and a bad idea.
The only one set 777 is /tmp/

copernicus / # ls -l
drwxr-xr-x 2 root root 2776 Sep 26 15:28 bin
drwxr-xr-x 4 root root 1024 Feb 23 2008 boot
drwxr-xr-x 14 root root 13840 May 25 22:39 dev
drwxr-xr-x 48 root root 3256 Oct 2 15:30 etc
drwxr-xr-x 3 root root 96 Mar 11 2009 home
drwxr-xr-x 7 root root 4168 Sep 16 15:05 lib
drwxr-xr-x 6 root root 168 May 13 19:44 mnt
drwxr-xr-x 3 root root 104 Aug 28 03:43 opt
dr-xr-xr-x 85 root root 0 Feb 16 2009 proc
drwx------ 9 root root 592 Sep 17 21:41 root
drwxr-xr-x 2 root root 3224 Sep 26 16:01 sbin
drwxr-xr-x 12 root root 0 Feb 16 2009 sys
drwxrwxrwt 7 root root 760 Oct 13 03:10 tmp
drwxr-xr-x 14 root root 432 Feb 21 2008 usr
drwxr-xr-x 14 root root 360 Mar 11 2009 var

Also if it makes any difference which it shouldn't this is a Gentoo box

g1smd




msg:4009313
 8:25 am on Oct 19, 2009 (gmt 0)

Thanks for the info.

User had run a script to change permissions but unfortunately one entry had '/ folder' instead of '/folder' in it.

Simple typo; disastrous results.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved