Progress: /etc/fstab now says:
//192.168.1.50/share/ /home/sander/share cifs username=nmt,password=1234,sec=ntlmv2 0 0
(note the sec=ntlmv2), and the mount works. Cool.
But still not right:
Code:
sander@appelboor:~/share$ dir > dir
bash: dir: Permission denied
sander@appelboor:~/share$
so I can't write via the mount, whereas good old smblclient can write stuff:
Code:
sander@appelboor:~$ smbclient //192.168.1.50/share -U nmt
Enter nmt's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.32]
smb: \>
smb: \> put hallo.txt
putting file hallo.txt as \hallo.txt (0,7 kb/s) (average 0,7 kb/s)
smb: \> dir hallo.txt
hallo.txt A 15 Wed Mar 20 23:42:30 2013
43987 blocks of size 33553920. 246 blocks available
smb: \> sander@appelboor:~$
sander@appelboor:~$
It seems the mount action changes the ownership of the directory to root:root
Code:
sander@appelboor:~$ ll | grep share
drwxrwxr-x 6 sander sander 4096 feb 9 22:48 DLNA-share/
drwxrwxr-x 2 sander sander 4096 mrt 20 23:47 share/
sander@appelboor:~$
sander@appelboor:~$ sudo mount -a
sander@appelboor:~$
sander@appelboor:~$ ll | grep share
drwxrwxr-x 6 sander sander 4096 feb 9 22:48 DLNA-share/
drwxr-xr-x 2 root root 0 mrt 20 23:42 share/
sander@appelboor:~$
I can only write as root:
Code:
sander@appelboor:~/share$ sudo su -
root@appelboor:~# pwd
/root
root@appelboor:~# cd /home/sander/share
root@appelboor:/home/sander/share#
root@appelboor:/home/sander/share# dir > dir
root@appelboor:/home/sander/share# dir dir
dir
root@appelboor:/home/sander/share# exit
logout
sander@appelboor:~/share$
Weird.
Bookmarks