Results 1 to 7 of 7
  1. #1

    Question Not Able To Set Crontab to 4755 in SSH logged in as root

    Hi,

    For some odd reason, when I run: chmod 4755 /usr/bin/crontab

    in ssh, it still does not change it to 4755. It's like I don't have permission to change it, ans I'm logged in as root.

    I've read some threads here on the forum and none really come to an issue where when they run that
    chmod 4755 /usr/bin/crontab it still doesn't chmod it.

    So is there a way to check if it is chmodded to 4755 as I use CSF Exploerer to check if it is chmod'd to 4755, and it just stays at 755.


    Thanks


  2. #2
    Join Date
    Mar 2002
    Location
    UK
    Posts
    1,262
    I had the same issue recently using WinSCP but it worked using SSH (Putty).

  3. #3
    Quote Originally Posted by grandad View Post
    I had the same issue recently using WinSCP but it worked using SSH (Putty).
    Yeah, so I'm just wondering if maybe it is set to 4755, but CSF's Explorer which lets me view all files/folders and the permissions each folder/file has set to it is just wrong?

    What way in SSH can you check to see what the file is chmoded to?


  4. #4
    Join Date
    Nov 2002
    Location
    WebHostingTalk
    Posts
    8,878
    * Moved to Technical and Security Issues....

    Sirius
    I support the Human Rights Campaign!
    Moving to the Tampa, Florida area? Check out life in the suburbs in Trinity, Florida.

  5. #5
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    8,910
    Quote Originally Posted by HastyHost View Post
    What way in SSH can you check to see what the file is chmoded to?
    ls -la /usr/bin/crontab

    If it's not set to 4755 (-rwsr-xr-x) then run the following:

    chmod 4755 /usr/bin/crontab
    Patrick William | RACK911 Labs | Software Security Auditing
    400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com

    www.HostingSecList.com - Security notices for the hosting community.

  6. #6
    Join Date
    Jan 2008
    Location
    United Kingdom
    Posts
    414
    Quote Originally Posted by HastyHost View Post
    What way in SSH can you check to see what the file is chmoded to?
    # ls -l

    ...

  7. #7
    I guess it is set to 4755: http://www.webhostingtalk.com/attach...1&d=1206060809

    Someone check and confirm, as if Pat H is right about his settings then yep seems to be ok?

    I'm not sure why CSF Explorer doesn't display it like that, but now again, it is the first version so maybe it just isn't configured to show it yet.
    Attached Thumbnails Attached Thumbnails 2.jpg  


Posting Permissions

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