Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
12
rated 0 times [  12] [ 0]  / answers: 1 / hits: 79959  / 1 Year ago, thu, may 25, 2023, 9:03:43

I have a line in my /etc/fstab for ages that stopped working since 13.04:



//192.168.100.2/share   /mnt/popcorn      cifs username=MyUserName,password=MyPassword,user,gid=sambashare,file_mode=0664 0   0


and it gives me:



mount /mnt/popcorn
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


dmesg is as helpful as sunshine in the desert:



[  622.471321] CIFS VFS: Send error in SessSetup = -13
[ 622.471458] CIFS VFS: cifs_mount failed w/return code = -13


I know the user/pass combo is correct, as this works fine:



bart@dosar:~$ smbclient //192.168.100.2/share --user=MyUserName
Enter nmt's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.32]
smb: > ls
...


How can I permanently mount a CIFS/Samba share on Ubuntu 13.04 ?


More From » mount

 Answers
2

according to (https://wiki.ubuntu.com/MountWindowsSharesPermanently) should be:



//servername/sharename  /media/windowsshare  cifs  username=msusername,password=mspassword,iocharset=utf8,sec=ntlm  0  0


Try to look what you are doing wrong. Make it simple, remove the file_mode, user and gid, maybe the iocharset and sec variables as well. If this will work, add always one...


[#30557] Friday, May 26, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
assionortly

Total Points: 423
Total Questions: 121
Total Answers: 115

Location: Chad
Member since Wed, Sep 30, 2020
4 Years ago
;