LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Mounting with privelages for normal users in samba (https://www.linuxquestions.org/questions/linux-networking-3/mounting-with-privelages-for-normal-users-in-samba-460421/)

Dachy 07-02-2006 08:50 PM

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?

dalek 07-03-2006 12:51 AM

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

You may want to pay close attention to this part:

Code:

        writeable = yes
Yours may be no which isn't what you want.

Hope that helps.

:D :D :D :D :D

Dachy 07-03-2006 11:27 AM

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?

Dachy 07-03-2006 11:57 AM

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...

dalek 07-03-2006 12:32 PM

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.

http://www.samba.org/

http://www.webmin.com/

Wish I could help more. Maybe something will pop into my mind.

:D :D :D :D


All times are GMT -5. The time now is 12:19 PM.