Summary: | Invalid smbmount error message | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Steven Wagner <stevenwagner> |
Component: | [OLD] Core system | Assignee: | Gentoo's SAMBA Team <samba> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Steven Wagner
2004-11-23 00:23:46 UTC
which samba/ebuild version? maybe root does benefit of greater share info: try with parameters like 'workgroup=...,username=...,noetbiosname,...' (man smbmount: the same options are valid for fstab as well, since smbmount is called from the mount command) net-fs/samba-3.0.8 That is strange...when I add the username= parameter to my fstab, the error message changes to: cannot mount on /net/nas: Operation not permitted smbmnt failed: 1 which if a much better error. Still don't see much reason to the whole process though. I suppose Ill try and get this upstream to the samba people. Anyone know how to make the share user mountable? that's not samba, but kernel. a valid command is (from simple user): 'smbmount //[workstation_name]/[share] [local_mount_point] -o username=administrator,password=[admin_pwd],workgroup=[workgroup_or_domain]' If the local user cannot write to/doesn't own the [local_mount_point], the 'operation not permitted' error is returned (infact, this is a local error) Yes, that is a valid kernel error msg. But the first error from my original post looks like a bug in samba. The first error was due to a fstab line which, passed to the mount prg, becomes: 'smbmount //NAS/DISK\0401 /net/nas -o password=blah' (with the permissions of the calling user, but _not_ his credentials, since there's no 'user=...' parameter: you're identifying yourself as the remote guest user). If your intentions were to mount the share with different credentials for each user doing the mount, that's not the way. For instance, a bash script doing a smbmount (automatically at logons?) could be the way: smbmount is installed with suid root bit active. This seems only a conf bug: marking as closed, since samba is behaving correctly. If I misundertood something, please reopen. :-) I see what you are saying. What I don't understand though is, why does it work with the same fstab line when I mount the share while I am root? I am not mounting with any special credentials...just guest really. I am using a linksys USB network attached storage server. I use password=blah because I am always prompted for a password for some reason. |