Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am having a problem when I try to rename or delete files. Most of our access to the server is through Samba. However, I tried rm and mv in linux and the problem is still there.
All our users are in the group associated with these files.
Permission for the files is 777.
lsattr shows no attributes.
The owner of the file and root can mv and rm.
Any other users cannot even though they they are in the same group.
The mv command results in the following messages.
mv: cannot unlink `ACH99': Operation not permitted
mv: cannot remove `ACH99': Operation not permitted
We have been running on linux/samba for over a month. I think we this problem just started in the last day or two. I am sure we would have noticed it earlier if it had been happening the whole time. I think I have only touched the smb.conf recently. None of this makes sense to me.
I have a subdirectory of home called main and a share setup for Samba that points to it. I can mv in main. The problem occurs in the subdirectory OPERATE. Here is the results of ls -l.
drwsrwsrwt 4 useridx Groupz 20480 Oct 1 14:21 OPERATE
Here is what a file and an attempt to move looks like.
-rwsrwsrwt 1 useridx Groupz 590 May 31 1995 LC5.OLD
[useridy@servername OPERATE]$ mv LC5.OLD LC5.BAK
mv: cannot unlink `LC5.OLD': Operation not permitted
mv: cannot remove `LC5.OLD': Operation not permitted
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
Ooops,
I didn't wait long enough to reply, but I guess doing the above would still
be informative. Of course, I forgot to mention that you should do the
chmod as root and the mv as a user who's been having problems with mv.
That what I was going to suggest, remove the sticky bit - the purpose of sticky bit is to emphasize the ownership of the files on a filesystem, so with it in place only root or the owner of the file has perms to do whatever they should do, even having -rwxrwxrwt won't let others to write to the file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.