LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   mount working on one machine but not another?? (https://www.linuxquestions.org/questions/linux-networking-3/mount-working-on-one-machine-but-not-another-658116/)

everyday 07-24-2008 11:58 PM

mount working on one machine but not another??
 
Hi all, I have a problem with mounting, where I have two servers (A and B), each with one shared folder each, and two client machines.

Both of my client machine can mount server A's drive, but only 1 client can mount server B's shared folder saying 'only root can do that'?

I know it must be something really simple but i'm baffled.

I have tried copying the same entrys from the working fstab to the other and so I know its not a syntax error at least.

It must be permissions as far as I can see are the same, and I am using the same username and password for both clients.

I'm stumped!

TIA everyone,

everyday

ronlau9 07-25-2008 06:26 AM

As far as my information goes if drive maybe yet better the drive and file type is not mentioned in fstab it standard that only root can mount it

skuzye 07-25-2008 06:42 AM

can you post not working fstab here? I'd also like to see you're shared folder permissions if possible... use ls -l to see that info...

Skuzye

everyday 07-25-2008 02:55 PM

thanks guys,

Here is the fstab entry:

//192.168.1.2/currentprojects /mnt/a cifs auto,username=pass,password=pass,uid=0,gid=500 0 0
//192.168.1.3/rfarm /mnt/b cifs auto,username=pass,password=pass,uid=0,gid=500 0 0

ls -l gives:

drwxrwxrwx 1 root 500 0 2008-07-25 16:51 a
drwxrwxrwx 2 root root 4096 2008-07-10 16:02 b

On the computer that is working:

//192.168.1.2/currentprojects /mnt/a cifs auto,username=pass,password=pass,uid=0,gid=500 0 0
//192.168.1.3/rfarm /mnt/b cifs auto,username=pass,password=pass,uid=0,gid=500 0 0
drwxrwxrwx 1 root pass 0 2008-07-25 16:51 a
drwxrwxrwx 1 root pass 0 2008-07-23 08:18 b

thanks

skuzye 07-25-2008 05:03 PM

I noticed that you're using group id to set permission in fstab. Maybe you have forgotten to add the client which is not working to that group.

If that's right, you just have to add the client to the group. I'm not very concerned about this so if that's the case I cannot help you further.

Skuzye

jschiwal 07-25-2008 06:47 PM

It would be better to use the "credentials" option to reference a credentials file. Remember that /etc/passwd is world readable. Also consider the _netdev option to delay mounting the share until the network is ready.

It might be better if you used the users uid instead of root. Your current configuration is exposing the root's password. Plus a root client may be mapped to guest by the server. Make sure that each username & password is entered using "smbpasswd" on the server.

everyday 07-28-2008 04:23 PM

Thanks everyone for your reply's, it was much appreciated. I just figured out what it was. I had to enter in the domain.

so my fstab entry went from:

//192.168.1.3/rfarm /mnt/b cifs auto,username=pass,password=pass,uid=0,gid=500 0 0

to

//192.168.1.3/rfarm /mnt/b cifs auto,username=domain/pass,password=pass,uid=0,gid=500 0 0

and then it worked straight away.

Thanks again everyone.

PS I figured it out by trying to log on with a windows machine and it promted for the domain, that tipped me off.


All times are GMT -5. The time now is 07:35 PM.