LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-02-2006, 08:50 PM   #1
Dachy
Member
 
Registered: Apr 2004
Location: san diego, ca
Distribution: Slackware 12.1
Posts: 99

Rep: Reputation: 15
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?
 
Old 07-03-2006, 12:51 AM   #2
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
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.

 
Old 07-03-2006, 11:27 AM   #3
Dachy
Member
 
Registered: Apr 2004
Location: san diego, ca
Distribution: Slackware 12.1
Posts: 99

Original Poster
Rep: Reputation: 15
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?
 
Old 07-03-2006, 11:57 AM   #4
Dachy
Member
 
Registered: Apr 2004
Location: san diego, ca
Distribution: Slackware 12.1
Posts: 99

Original Poster
Rep: Reputation: 15
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...
 
Old 07-03-2006, 12:32 PM   #5
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
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.

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting hard drive partition write for normal users jojotx0 Linux - Hardware 1 04-19-2005 12:10 PM
Permission for normal users Vizy Linux - General 1 03-16-2004 11:39 AM
I want to allow normal users for mounting bacon22 Linux - General 9 01-29-2004 02:29 AM
snes9express and normal users murray_linux Slackware 12 12-20-2003 03:56 PM
error with mounting samba share on linux as normal user dwof Linux - Software 7 08-13-2003 04:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration