Issue with mount.cifs in Ubuntu [while accessing Windows samba share using a localServerUser]
Try this:
sudo mount.cifs //192.168.5.61/Share /mnt/share/ -o username=<domain_name>/serverLocalUser,password=passcode
Related videos on Youtube
![sree](https://i.stack.imgur.com/we7r3.jpg?s=256&g=1)
sree
Updated on September 18, 2022Comments
-
sree almost 2 years
I am having a hard time figuring out an issue while trying to mount a windows share in Ubuntu 10.04.
Issue:
The problem is I am not able to mount a windows share using a serverLocalUser present in the windows-server. But I am able to use smbclient to access that same share using that same serverLocalUser. I am also able to mount the same share using a domain user who also has permission for that folder.
sudo mount.cifs //192.168.5.61/Share /mnt/share/ -o username=serverLocalUser,password=passcode
mount error(13):Permission denied Refer to the mount.cifs(8 ) manual page (e.g. man mount.cifs)
Troubleshooting done:
The following works:
- smbclient //192.168.5.61/Share -U localServerUser
- sudo mount.cifs //192.168.5.61/Share /mnt/share/ -o username=domainUser,password=passcode
- Mounting using the localServerUser using nautilus (which uses smbclient internally)
The following does not works:
- sudo mount.cifs //192.168.5.61/Share /mnt/share/ -o username=serverLocalUser,password=passcode,domain= WORKGROUP
- sudo mount.cifs //192.168.5.61/Share /mnt/share/ -o username=192.168.5.61\serverLocalUser,password=pas scode
Thanks in advance for your help.
Regards,
Sree
-
sree over 12 yearsthat also did not work. I get the same error. Also the serverLocalUser as I said earlier is not a domain user. It is a user created in that server locally.
-
Greg Petersen over 12 yearsReplace <domain_name> with IP address, but use slash instead of backslash.
-
sree over 12 yearsI had tried that too. sudo mount.cifs //192.168.5.61/Share /mnt/share/ -o username=192.168.5.61/serverLocalUser,password=passcode and sudo mount.cifs //192.168.5.61/Share /mnt/share/ -o username=192.168.5.61\serverLocalUser,password=passcode does not work
-
sree over 12 yearsThe following worked for me now: sudo mount.cifs //192.168.5.61/Share /mnt/share/ -o username=192.168.5.61/serverLocalUser NOTE:I did not give the password in the command line; so it prompted me to enter the password; and when I entered it worked. Thanks for your help quanta. But I want to use this in a non-interactive script which will run automatically at a given time. Any idea to make that working?