can't delete file even after "chmod 777" & "rm -f"
Danie Du Toit
danie.dutoit at gmail.com
Sat Mar 12 13:57:51 PST 2005
The attributes for the /home/robot and /home/mlbot by default set to
755. To have a users in the same group delete files from these
directories, you need to set the directory attributes to 775.
On Sat, 12 Mar 2005 16:47:03 -0500, Gary Stanny <stanny at tdfltd.com> wrote:
>
> Howdy -
>
> I'm having a weird problem. My users can't delete each other's files.
> Even if I "chmod 777" the target file and use a "rm -f" cmd. Of course root
> can delete the files. Both users are in wheel.
>
> stanny >ls -l bf_com_exit_rpt.txt
> -rwxrwxrwx 1 robot wheel 5241 Mar 11 16:30 bf_com_exit_rpt.txt
>
> stanny >rm bf_com_exit_rpt.txt
> rm: bf_com_exit_rpt.txt: Operation not permitted
>
> stanny >rm -f bf_com_exit_rpt.txt
> rm: bf_com_exit_rpt.txt: Operation not permitted
>
> cat /etc/passwd ->
> stanny:*:1000:0:Gary Stanny:/home/stanny:/usr/local/bin/zsh
> robot:*:9999:0:Mr. Robot:/home/robot:/usr/local/bin/zsh
> mlbot:*:9998:0:Mail Bot:/home/mlbot:/usr/local/bin/zsh
>
> stanny >cat /etc/group
> # $FreeBSD: src/etc/group,v 1.19.2.1 2001/11/24 17:22:24 gshapiro Exp $
> #
> wheel:*:0:root,stanny,robot,mlbot
>
> Please also CC me direct as I get the list via digest.
>
> Thanks a bunch.
>
> cheers
>
> gary
>
> Gary Stanny Tierra del Fuego Ltd. www.TDFltd.com
> stanny at TDFltd.com Financial Software 734-449-8306 (voice/fax)
> 7725 Shady Beach Dr Whitmore Lake, MI, 48189 USA
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
More information about the freebsd-questions
mailing list