LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-09-2005, 01:31 PM   #1
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Rep: Reputation: 31
SMB mount through fstab


I know this has been asked before, and Ive been trying everything theve done and still get no where.

as root doing mount -t smbfs -o username=admin,password=pass //winxp/share /mnt/winxp/share will work fine.

In /etc/fstab/ I put in

//winxp/share /mnt/winxp/share smbfs user=admin,password=pass,rw,user 0 0

root or user cant mount it. I tried leaving everything out but the user=admin and still get the same errors listed below.

Without the password in there it will prompt for password then give this error:

Gentoo ~ # mount //winxp/share
Password:
6769: session setup failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed
Gentoo ~ #mount -t smbfs -o username=admin,password=pass //winxp/share /mnt/winxp/share
Gentoo ~ #

Putting it in on the command line works but I need want to be able to mount/unmount from user.
 
Old 10-09-2005, 02:13 PM   #2
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
Try editing the fstab line and remove the options after the password. Also are you sure that for fstab the parameter "user=" is correct as opposed to "username="?
 
Old 10-13-2005, 10:13 PM   #3
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Original Poster
Rep: Reputation: 31
Strange.. I origanlly had username= and that was giving me a error saying error on line 14 of /etc/fstab etc... Now it seems to work for root and user. I removed the rw command but left user.

Here how it is now.

//winxp/share /mnt/winxp/share smbfs username=admin,password=pass,user 0 0

Now my problem is I can mount it as my user and have full access, but I cannot umount it. Get a error message saying only root can do that.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
smb mount folders disappear on mount & konqueror smb fails: network unreachable tisource Linux - Networking 1 10-17-2007 12:30 AM
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
smb mount fstab Redouane Benkad Linux - Networking 11 11-27-2004 09:41 PM
SMB shares in fstab gargamel237 Red Hat 3 08-30-2003 08:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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