Find the answer to your Linux question:
Results 1 to 6 of 6
so im messing around i changed the permissions on /usr/bin/fcrontab and borked it all up!!!!! so i need to change it back to ---s--s--- 1 cron cron 39540 Apr 24 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru loft306's Avatar
    Join Date
    Oct 2003
    Location
    The DairyLand
    Posts
    1,666

    hmmm... a strange permission level


    so im messing around i changed the permissions on /usr/bin/fcrontab and borked it all up!!!!!
    so i need to change it back to
    • ---s--s--- 1 cron cron 39540 Apr 24 2004 /usr/bin/fcrontab
    however i have never seen this permission level so i don't know how to create it.
    ~Mike ~~~ Forum Rules
    Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
    http://loft306.org

  2. #2
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    That's the setuid bit. It allows the file to elevate the users permissions to superuser. In your case, it allows the group to do this as well (which is the setguid bit).

    Code:
    chmod 6000 whatever
    Will acheive the mode that is on the file in your post. The first bit in that chmod is comprised of 4 for suid and 2 for setgid (the value of 1 is for the sticky bit...rarely used). When you specify only a three bit octal number to chmod, leading zeroes are assumed.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  3. #3
    Linux Enthusiast scientica's Avatar
    Join Date
    Sep 2003
    Location
    South- or "Mid-" Sweden
    Posts
    742
    cool you got a setuid and setguid file, with zero permissions - meaning in effect only root can do anything with it... (you could say the permission to be this sentance: "every thing is foridden for this file, and every thing you do (which really is nothing :P) is done as cron (user and group) - only root almighty can change this")

    My recomendation, as root, use "chmod" and the power of root
    (btw, you really don't want to 'chmod 6000 Ásr/bin/fcrontab' (yes that will setguid and setuid it and remove all other options) -- it'll leave the file use less to everyone but root...)


    btw, it seems the permission octet is:
    Xugo
    for X: 1 = sticky, 2 = set guid, 4 = set uid (or any "binary or" of them)
    for [ugo] = 1 = exec, 2 = write, 4 = read (or any "binary or" of them)

    [edit]bummer.. saramount beat me... I'm to slow writing detailed answers :P[/edit]
    Regards Scienitca (registered user #335819 - http://counter.li.org )
    --
    A master is nothing more than a student who knows something of which he can teach to other students.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru loft306's Avatar
    Join Date
    Oct 2003
    Location
    The DairyLand
    Posts
    1,666
    Ha ah scientica....i did expect the ansawer from your however
    thnx sarumont...
    ok so what if i set it 6775 would that give users use of it along with root?
    ~Mike ~~~ Forum Rules
    Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
    http://loft306.org

  6. #5
    Linux Guru loft306's Avatar
    Join Date
    Oct 2003
    Location
    The DairyLand
    Posts
    1,666
    yep! that worked

    not to mention the users that need cron are in cron group so are thoes perms apropriate?
    ~Mike ~~~ Forum Rules
    Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
    http://loft306.org

  7. #6
    Linux Newbie
    Join Date
    Jan 2004
    Location
    Istanbul,Turkey
    Posts
    151
    Thanks!

    (i am using cron on loft306's server )
    Have a nice day

Posting Permissions

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