Re: permissions

From: Sebastian Steenbuck (me_at_x3k6a2.net)
Date: 07/24/04

  • Next message: Eitarou Kamo: "Re: umass0: CBI reset failed, Timeout.... 4.10-R"
    Date: Sat, 24 Jul 2004 13:31:10 +0200
    To: freebsd-stable@freebsd.org
    
    

    > How can I make a directory permission so that
    > the user can write but cannot delete a file inside the directory?

    Another way is to set the setuid bit. (chmod 4000)

    See chmod (1)

    > 4000 (the setuid bit). Executable files with this bit set will
    > run with effective uid set to the uid of the file owner.
    > Directories with this bit set will force all files and sub-
    > directories created in them to be owned by the directory
    > owner and not by the uid of the creating process, if the
    > underlying file system supports this feature

    mfg

    Sebastian Steenbuck

    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"


  • Next message: Eitarou Kamo: "Re: umass0: CBI reset failed, Timeout.... 4.10-R"

    Relevant Pages

    • Re: citrix connection issue
      ... >> A dirty hack would be to use chmod to set the ica binary as setuid. ... I drove by the fire department the other day, and they had a big public ... How about you just stop at the house that's on ...
      (comp.os.linux)
    • Re: setuid root
      ... with the priviledge of the root. ... I came to know setuid is the way to do this. ... here is my test script. ... # chmod 4755 ./tst ...
      (comp.unix.programmer)
    • effective user id
      ... ownership of a.out to user2:user2 and set the setuid bit (chmod 04755 ... while (dirp) { ...
      (comp.unix.questions)
    • effective user id
      ... ownership of a.out to user2:user2 and set the setuid bit (chmod 04755 ... while (dirp) { ...
      (comp.unix.questions)
    • effective user id
      ... ownership of a.out to user2:user2 and set the setuid bit (chmod 04755 ... while (dirp) { ...
      (comp.unix.programmer)