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.
If I take away the guest option I get a password prompt which gives me the abover error if I leave it blank, put in the admin password for the NAS or the password for the one user I have setup.
If I put in the username = icarus I get a password prompt that gives the same behavior.
I've tried removing the umask option thinking that maybe I can't set a umask for a samba share, but that doesn't change my results. Can anyone tell me where I'm going wrong?
As an aside, is there any way to suppress the error messages about not being able to maintain file permissions when I copy stuff onto the NAS?
It's not that annoying when using command line tools, but when I'm melding a file tree onto the NAS and Meld gives me a prompt for every single file it's incredibly frustrating. I can't find an option in meld for this, will any of the share options do this?
When I try it as root it works perfectly. Does that tell you anything?
The users option in the fstab allows me to try to mount it as a user, but apparently cifs is not getting the right options. I can't find anything in the specified man page that sheds any light on the subject. I've tried a bunch of the options, sec=none, guest, user=guest, etc. with no effect.
This will prompt you for a password for icarus. However, the password is not the password on the local machine. It will be the password on the remote machine, the samba account for icarus. You might also try changing icarus to guest, if that worked when manually mounting it. You can also add the password to the fstab entry to avoid manually typing this each time, although this may not be the most secure approach.
Last edited by Chromezero; 09-26-2008 at 10:08 AM.
That won't allow me to mount it except as root. If I add the users option I get the same error with either icarus or guest as the username, operation not permitted.
Sorry for the delayed response, been busy the past few days. Anyway,this sounds like a permissions issue to me. You may want to do an ls -l on /sbin/mount.cifs and find out what group/permissions are set on the mount command. Chances are, this is set to root/root. You could setup a samba group and add yourself, and anyone else you need, to the samba group. Then change /sbin/mount.cifs to root/samba with permissions of 750 or something similar. Then anyone that's part of the samba group should be able to execute that command.
I checked the file permissions all the way down the tree. mount.cifs, and the link to it which is used in the path, have permissions 755 or higher. All the directories in the paths leading to the link and the actual binary are set with permissions 755.
As far as I can tell all the permissions should allow normal users to use mount.cifs. Also, I'm not sure if this matters or not, but I set the permissions of the mount point itself to allow all users rwx access.
Thanks for the suggestion, does anything else come to mind?
Honestly, I'm out of ideas here. At this point all I can suggest is to double check everything: smb.conf on the remote machine, samba user accounts on the remote machine, fstab on the local machine, mount point on the local machine. If root is able to mount this successfully and users can not, it just seems like a permissions issue to me...
I don't think it's a permissions issue at the OS level because the error doesn't seem to be coming from the OS. It seems that I have permission to executre mount.cifs, but when I do the application itself is saying I'm not permitted to do something. I guess I need to do more digging into what mount.cifs actually needs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.