LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-30-2005, 11:25 PM   #1
paco36
Member
 
Registered: Jan 2004
Distribution: Fedora Core 2, Gentoo
Posts: 33

Rep: Reputation: 15
Mount CIFS partition as user: Invalid or missing username


I have a directory on my windows machine(XP SP1) shared through my network. My linux box (FC2 2.6) mounts this directory as a cifs partition. Now, I have it in my fstab set to auto and all works great providing that my windows machine is up and running when I start my linux machine. However if I try to mount the drive after boot from a non-root user it will not allow me because I do not have the user flag set. However... when I add the user flag to my fstab it gives me the error Invalid of missing username. Not really sure what is going on here. Any help would be much appreciated.

The line from my fstab is as follows:

//192.168.0.3/music /mnt/music cifs password=blank,username=blank,user 0 0

(Note that I do not need a valid username or password to access my windows share. However if I leave the password and username options out it will 1) Prompt me for a password, and 2) No matter what I put in not give me access.)

Thanks in advance,
-paco
 
Old 07-02-2005, 08:11 AM   #2
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
Two things I can think of to try:

1. You probably need a umask option in your fstab too.
Try umask=000 to start with, but it should probably be 002?
I believe this is why you would be having errors when mounting
the share after boot as a non-root user.

2. Specify username/password on your windows share and put those
values on your fstab line. Can't be that inconvenient can it?
Perhaps also, add a linuxuser to windows and add it to a group
that can access the share?
 
Old 07-04-2005, 12:31 AM   #3
paco36
Member
 
Registered: Jan 2004
Distribution: Fedora Core 2, Gentoo
Posts: 33

Original Poster
Rep: Reputation: 15
Thanks for the reply. I will have to give it a try in the morning since I am not at the machine as of now.

I appreciate it.
-paco
 
  


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
mount smbfs vs cifs Zurvan Linux - Networking 2 12-29-2006 02:46 PM
long remote mount time for samba with cifs command luna6 Linux - Networking 1 04-01-2005 11:43 AM
useradd: invalid username username$ engyeow Fedora 5 12-05-2004 04:35 AM
squirremail ...it says invalid user or invalid password. rnj Fedora 9 10-25-2004 09:56 PM
Transition to CIFS and User Privalages mr666white Fedora 6 09-01-2004 03:32 PM

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

All times are GMT -5. The time now is 05:41 PM.

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