LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Mount CIFS partition as user: Invalid or missing username (https://www.linuxquestions.org/questions/linux-general-1/mount-cifs-partition-as-user-invalid-or-missing-username-338940/)

paco36 06-30-2005 11:25 PM

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

uberNUT69 07-02-2005 08:11 AM

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?

paco36 07-04-2005 12:31 AM

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


All times are GMT -5. The time now is 12:04 AM.