NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
max_duo
Jan 08, 2011Aspirant
no write-permissions via CIFS
Hi Folks,
I am using two ReadyNAS Duo devices with one disc of 2TB in each. My firmware version is RAIDiator 4.1.7 [1.00a043].
As client I am using Ubuntu 10.10. Accessing my shares via NFS works fine.
But here comes my first question: I am able to mount my share from any user on any host if I add this to /etc/fstab:
All fine, but what about my permission rights? I want to submit a username/password and want only to be able to access if i am authorized! =)
Am I right, that NFS is only working with host allow/deny-lists without caring about passwords? Even the UIDs are not the same!
Thats why I am trying to mount my share via CIFS: The usual command gives me access to my share, but not allows me to write:
What I am doing wrong? By the way if i add the share on Gnome via "Places->Connection to Server->Windows-Share->..." all works fine and I have full access via
Unfortunately this is not mounted to a folder. I want to permanently mount my shares via /etc/fstab.
Any ideas?
Kind regards,
Max
I am using two ReadyNAS Duo devices with one disc of 2TB in each. My firmware version is RAIDiator 4.1.7 [1.00a043].
As client I am using Ubuntu 10.10. Accessing my shares via NFS works fine.
But here comes my first question: I am able to mount my share from any user on any host if I add this to /etc/fstab:
192.168.99.109:/drive_a /home/max/drive_a nfs nfsvers=3,rsize=65536,wsize=65536,tcp,noatime,intr
All fine, but what about my permission rights? I want to submit a username/password and want only to be able to access if i am authorized! =)
Am I right, that NFS is only working with host allow/deny-lists without caring about passwords? Even the UIDs are not the same!
Thats why I am trying to mount my share via CIFS: The usual command gives me access to my share, but not allows me to write:
sudo mount.cifs -o user=max,passw=QQo1iaM7X2 //192.168.99.109/drive_a /media/drive_a
What I am doing wrong? By the way if i add the share on Gnome via "Places->Connection to Server->Windows-Share->..." all works fine and I have full access via
smb://max@192.168.99.109/drive_a/
Unfortunately this is not mounted to a folder. I want to permanently mount my shares via /etc/fstab.
Any ideas?
Kind regards,
Max
4 Replies
Replies have been turned off for this discussion
- hackmasterAspirantI don't have my Ubuntu machine in front of me but for SMB/CIFS:
mount -t cifs //192.168.99.109/drive_a /media/drive_a -o username=username,uid=username,gid=groupname,file_ mode=0640,dir_mode=0750,iocharset=utf8
or:
sudo mount -t smbfs //192.168.99.109/drive_a/ /media/drive_a -o username=Guest,password
Can't remember which one.
For NFS, I believe it uses the UID. You can manually specify the UID of a user you are creating on the NAS. I will have to defer to someone else for verification on that though.. - max_duoAspirantYear, the first try works for me:
sudo mount -t cifs //192.168.99.109/drive_a /media/drive_a -o username=max,uid=max,gid=users,file_mode=0640,dir_mode=0750,iocharset=utf8
Nice. =) - hackmasterAspirantNot a problem, glad to help!
- max_duoAspirantOkay ... and how to do the same in /etc/fstab?
Thanks in advance,
Max
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!