Find the answer to your Linux question:
Results 1 to 8 of 8
I thought I made a Clean Linux Installation. So I did a find / -perm 777 and I found out that chmod has 777 rights.. Isnt that VERY dangerous? Almost ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429

    chmod 777


    I thought I made a Clean Linux Installation.
    So I did a find / -perm 777
    and I found out that chmod has 777 rights..

    Isnt that VERY dangerous?
    Almost nothing should have 777 right??

    Well, thanks..
    New Users, please read this..
    Google first, then ask..

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    Thats a bit strange. If it has perms of 777 then any normal user can do what they want to the file, so its probably best to change the perms to 755. The question is how did chmod end up with perms of 777 when usually it has perms of 755.

  3. #3
    Just Joined!
    Join Date
    Sep 2007
    Location
    Oxford, Uk
    Posts
    6
    Are you sure you are not refering to the symbolic link of chmod and not chmod itself?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    Well, I can chmod with a normal user.. :S
    I just installed Gentoo.. and I didnt do anything weird..

    I guess chmods rights should be 700 right?
    New Users, please read this..
    Google first, then ask..

  6. #5
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    It should have 755. I've double checked this on openSUSE and Mandriva.

  7. #6
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    So other users are able to read the file? That doesnt make sence.
    Anywho, ok thx..

    I think im going to Double check all my 2007.0 gentoo PCs now.. Since well if they all have chmod 777 Im going to report that to the Gentoo Development team.. :S
    New Users, please read this..
    Google first, then ask..

  8. #7
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,393
    So other users are able to read the file? That doesnt make sence.
    Anywho, ok thx..
    Yes it makes sense because all users should be able to use chmod on files and directories that they own.

  9. #8
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,429
    Quote Originally Posted by matx View Post
    Are you sure you are not refering to the symbolic link of chmod and not chmod itself?
    heh well I keep forgetting what Symbolic links are and were I should use them for?

    Anywho, I start thinking that you are right..
    Since when i do:
    ls /usr/bin/chmod -l
    I get
    lrwxrwxrwx 1 root root 10 Sep 6 13:08 /usr/bin/chmod -> /bin/chmod
    New Users, please read this..
    Google first, then ask..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •