LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-02-2005, 05:52 AM   #1
gunnix
Member
 
Registered: Apr 2004
Distribution: Arch, Debian and FreeBSD
Posts: 243

Rep: Reputation: 30
samba fstab


Hi, I'm trying to automount a windows shared folder on my debian stable computer. I have added this entry in fstab:

//NEW/SharedDocs /mnt/share smbfs rw,auto,userid=guest,passwd=guest 0 0

But only the root can read and write to it. I'd want the normal user to be able to read and write. How do I do that?

(I tried a lot of stuff but it just doesn't seem to work, I'm a samba noob)

grtz
 
Old 07-02-2005, 06:43 AM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
post the output of   ls -l /mnt/   please
 
Old 07-02-2005, 06:56 AM   #3
gunnix
Member
 
Registered: Apr 2004
Distribution: Arch, Debian and FreeBSD
Posts: 243

Original Poster
Rep: Reputation: 30
drwxr-xr-x 1 root root 4096 2005-07-02 16:08 share


With this entry I can mount with root and then rw with user sam:
//NEW/SharedDocs /mnt/share smbfs uid=sam,umask=0002,rw,users,auto,userid=guest,passwd=guest 0 0

But the folder doesn't get mounted at boot. Probably because smbd and nmbd aren't started yet when the computer tries to mount them. How to solve that?
 
Old 07-02-2005, 07:18 AM   #4
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
My head was in the clouds. It wasn't local permissions in the way cause you were mounting a network share.

<edit>
i need sleep.
 
Old 07-02-2005, 08:16 AM   #5
gunnix
Member
 
Registered: Apr 2004
Distribution: Arch, Debian and FreeBSD
Posts: 243

Original Poster
Rep: Reputation: 30
now I just let it mount with an entry in .xinitrc:
sudo mount /mnt/share

It's an ugly hack if you ask me. And it's on a computer of a friend I do this. Tomorrow I'm leaving this place and will be 1000km away, so I hope I get it right still today.
 
  


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
samba mounts in fstab Zurvan Linux - Networking 5 04-17-2005 10:13 AM
fstab and samba? shanenin Linux - Networking 2 12-27-2004 04:52 PM
Samba in fstab, problem hraposo Debian 9 12-16-2004 06:36 AM
Fstab problem with Samba jalperin Linux - Newbie 6 08-28-2004 03:25 PM
Samba and fstab Celettu Linux - Networking 2 07-13-2004 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:05 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