1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How To Change Debian Permissions for directories and files

Discussion in 'Security' started by Joujouba, Dec 9, 2014.

  1. #1
    Hello,
    SEMrush
    I have those 4 directories:
    [​IMG]

    as you see they are all set to 755 permission however one of them is drwxr-xr-x instead of sr.
    how can i change that please? i have been trying forever to do that but always failed.

    Thank you
     
    Joujouba, Dec 9, 2014 IP
    SEMrush
  2. Joujouba

    Joujouba Member

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #2
    chmod g+s folder fixed the problem but its now showing a Capital 'S', what i need is the small letter s.
    Any idea?
    thanks!
     
    Joujouba, Dec 9, 2014 IP
  3. hostavps

    hostavps Member

    Messages:
    51
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    26
    #3
    That is the setgid bits meaning its permission 6755
    Why do you need to change that? You want to be careful changing anything needing that. You would change it by chmod 0755 to match the others. here is an article explaining in detail about this.
    https://www.gnu.org/software/coreutils/manual/html_node/Directory-Setuid-and-Setgid.html
     
    hostavps, Dec 27, 2014 IP
  4. hostingros

    hostingros Greenhorn

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #4
    chmod 0755 foldername should fix it up to the default.
    Let me know if you still face the problem.
     
    hostingros, Jan 6, 2015 IP