Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Oct 2001 15:13:51 +0700
From:      Roger Merritt <mcrogerm@stjohn.ac.th>
To:        "james" <jfzuelow@alaska.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Unable to delete file
Message-ID:  <3.0.6.32.20011002151351.007bf100@stjohn.stjohn.ac.th>
In-Reply-To: <008c01c14b0f$c1a82760$3f00a8c0@sodorline.home>
References:  <3.0.6.32.20011002103107.007ae580@stjohn.stjohn.ac.th>

next in thread | previous in thread | raw e-mail | index | archive | help
At 10:58 PM 10/1/01 -0800, you wrote:
>
>----- Original Message -----
>From: "Roger Merritt" <mcrogerm@stjohn.ac.th>
>
>> So I went to the console, logged on and su'ed and tried to delete it. No
>> dice. So I tried 'ls -lo', but no flags are set. Then I tried 'fstat -f
>> /home/public', no files open from that directory. Tried again, 'cd
>> /home/public; rm -f GradeSht.xls', and again I get "rm: GradeSht.xls:
>> Permission denied". Permission denied!!! I am ROOT -- resistance is
>futile!
>> Except it's not. I'm stymied. Oh, yeah, thinking my securelevel might
>have
>> gotten changed I tried 'syscontrol kern.securelevel' and got -1, the
>> default value, which it should be.
>>
>> What can I try next? I've tried searching the archives and haven't found
>> anything yet.
>> --
>> Roger
>
>Whoops!  Sorry.  Your original post got to me after the reply - I didn't
>see this part.  Sorry for the lame advice to do something you've already
>done.
>
>Did you try to chflags nouchg GradeSht.xls just to see if it would work?
>I don't know why it would if ls -lo doesn't show a flag set, but one thing
>to try.  (or noschg)
>
>Cheers,
>
>James Z.
>

Oh, dear. I think I've found it. The directory is actually on another
server, which connects to other subnetworks we have to share with, and is
mounted on this server by NFS. When I checked the file permissions on the
other machine I found that only the owner had write permission for this
directory. When I changed that things started working the way they should.

I've gotta be more careful about checking file permissions. They don't
always get set the way I expect them to when directories are created by
clients on Win95 machines.

Thanks to everybody for your help.
-- 
Roger


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.6.32.20011002151351.007bf100>