Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a CIFS share on a NAS made by Ciprico (which no longer exists)
All of the files before a certain date cannot be deleted. On a windows machine, you can delete the file, no error messages, and if you refresh, the file is back.
The files that cannot be deleted, have the permissions of:
nfsnobody is the nfs server equiv of root - this is part of a feature called root squashing.
basically you need to be root on the server - user=nfsnobody or use the export cammand to disable this. Never seen this used on a nas though.
One thing to look at is the ownership of the directory being shared. Another thing is what these files are. A file named aquota.user for example is used by the system to administer quotas. Such a file may be recreated by the kernel, so it is a new file by the same name which is created.
It is the ownership of the directory containing file that determines whether a file is deletable. A user with write access can delete files, unless the sticky bit is set on the directory. In that case, only the owner can delete files.
It seems that the NAS supports NFS. Try mounting the share on a Linux box and then delete the files as root. Root squashing changes the root user to "nfsnobody" who is the owner of the files, so deleting should be possible.
You can run "sudo /usr/sbin/showmount -d <nas ip address>" to list the directories nfs shares.
Root squashing changes the root user to "nfsnobody" who is the owner of the files, so deleting should be possible.
I've been pondering this - it is root on the server that becomes nfsnobody, rood on a client is still root. The idea is that someone with local root access does not get to administer the nfs server.
http://www.troubleshooters.com/linux/nfs.htm
... discusses this and ways to get around it. I've never seen this on a nas before - presumably it is possible to log in to the server to configure it?
And yes, caution is advised in removing the server root users files - if you don't know how to act as the nas admin, then you should find somebody who does and ask them about it. They are clearly not put there by a guest. There are often good reasons for these files to stay where they are.
These files were put on the appliance as a anonymous user just like the ones that are marked guest. Nothing changed in our infrastructure on how people put files on the appliance.
I do have root to the appliance via ssh and I can get any information you want.
Ok - since you can act as root on the server, you can export to a guest or just change the owner of the files.
It is unlikely that the files become owned by root when added by a guest user. Your observations suggest that someone is root when they are not supposed to be ... work out who put them there and under what conditions: try to duplicate the feat. It is technically possible that the owner/group got changed later - if they had the right owner when first uploaded - so you probably need to figure out how.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.