Mounting with privelages for normal users in samba
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Mounting with privelages for normal users in samba
I'm mounting a share on a windows box on my slackware system. i switch to root and type: "smbmount //windowsbox/theshare /mnt/theshare". this gives me access to the files but i cannot write to the drive/share or modify anything on it.
i've tried "smbmount //windowsbox/theshare /mnt/theshare rw,user" to no avail. anyone able to shed some light on this subject for a noob? Also, is it necessary to be root in order to mount it, and is there a way to mount it everytime i start the computer automatically?
Can you install webmin? It makes it a lot easier to configure samba. It is a GUI interface. Just point a browser to https://localhost:10000/ and click around in there. For me it is Servers then Samba in the list below. Webmin works really well for me. If you want something to go by because you can't install webmin:
Code:
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]
log file = /var/log/samba/log.%m
printer = HP-Deskjet-3820
restrict anonymous = no
ldap ssl = No
socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
domain master = no
map to guest = Bad User
encrypt passwords = yes
public = yes
printer admin = @adm
dns proxy = no
writeable = yes
max protocol = NT
server string = Samba Server %v
printing = cups
workgroup = MSHOME
os level = 20
server signing = Auto
printcap name = cups
security = share
preferred master = no
max log size = 50
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# to allow user 'guest account' to print.
guest ok = yes
printable = yes
create mask = 0700
# =====================================
# print command: see above for details.
# =====================================
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
printer name = HP-Deskjet-3820
; print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients).
# The following two commands are the samba defaults for printing=cups
# change them only if you need different options:
; lpq command = lpq -P %p
; lprm command = cancel %p-%j
# This share is used for Windows NT-style point-and-print support.
# To be able to install drivers, you need to be either root, or listed
# in the printer admin parameter above. Note that you also need write access
# to the directory and share definition to be able to upload the drivers.
# For more information on this, please see the Printing Support Section of
# /usr/share/doc/samba-<version>/Samba-HOWTO-Collection.pdf
[print$]
path = /var/lib/samba/printers
write list = @adm root
[Data]
path = /mnt/data/Teresa
i got webmin installed, and i edited the config, and i made the changes to make everythign writeable. but when i reboot and i do: su root then smbmount //host/share /mnt/share, it still won't let me write to the drive.
since the harddrive is connected to the windows box (and yes it is a fat filesystem) should i be installing webmin on the windows box?
now it also seems that since i rebooted, webmin doesnt work. when i do http://localhost:10000 it doesn't show that website anymore that lets me change everything...
You should be able to connect to whichever computer is running samba I would think. I run samba on my Linux box and my fiance, soon to be wife, very soon, uses the windoze thing.
I'm not a real guru on samba, which is why I use webmin. May want to check here while we wait on a serious guru.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.