Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Running slackware 10.2 and I occasionally connect to a windows VPN and need access to shares. As root, I can enter the following and I have access as I would expect
Nothing really. Usually, root access is required to mount anything. When you attach USB devices that get mounted automagically, some process with root authority is doing the mount on your behalf.
One thing you can try is use "sudo" to run the smbmount command. Not being able to run smbmount might seem like a pain in the a**, but from a security perspective not allowing regular users to mount devices is a good thing, at least IMO.
Anything I could do in fstab to make this an easier process? Mounting 10 shares by typing all those isn't exactly "friendly". Note that I have no problem with my users having access (that is what I want).
Anything I could do in fstab to make this an easier process? Mounting 10 shares by typing all those isn't exactly "friendly". Note that I have no problem with my users having access (that is what I want).
The fifth field, (fs_freq), is used for these filesystems by the
dump(8) command to determine which filesystems need to be dumped. If
the fifth field is not present, a value of zero is returned and dump
will assume that the filesystem does not need to be dumped.
The second 0 is the sixth field:
Quote:
Originally Posted by fstab manpage
The sixth field, (fs_passno), is used by the fsck(8) program to deter-
mine the order in which filesystem checks are done at reboot time. The
root filesystem should be specified with a fs_passno of 1, and other
filesystems should have a fs_passno of 2. Filesystems within a drive
will be checked sequentially, but filesystems on different drives will
be checked at the same time to utilize parallelism available in the
hardware. If the sixth field is not present or zero, a value of zero
is returned and fsck will assume that the filesystem does not need to
be checked.
See what that does. I've done this kind of thing in the past and it worked fine, except I don't think I specified the DOMAIN\\name in entry.
You need to make `smbmnt` setuid root in order to have normal users do the mount.
Not familiar with a command "setuid", but from what I read, the command "chmod u+s /usr/bin/smbmnt" does this. I did and I receive the same error. That command is correct right?
In that case, there's no problem because root will mount the shares. But that is not what the OP wanted.
Yep, I didn't figure out that he wanted his users to be able to do the mounts themselves, on-demand, until later on.
Quote:
Another way of mounting on demand without the problem you mention is using sudo.
Myabe put the sudo command in a script so the users type a command link "winmount [sharename]" and that share is mounted via sudo under the covers?
Additionally, if superuser access is required to mount the SMB share, I imagine there might be some permissions issues that would need to be worked out after the share is mounted. The user mounting the share might want read/write access to it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.