NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Matt_M
Sep 04, 2011Aspirant
Question about mounting on opensuse
Hey there.
I am completely new to Linux (using OpenSuse) and picking things up slowly.
I have a question about mounting my NV+.
When I mount it, i use the following commands when logged on as user "matt" :
sudo mount -t cifs -o rw,username=Matt,password=matt //192.168.2.15/Matts /home/matt/GRUMPY/Matts
sudo mount -t cifs -o rw,username=Matt,password=matt //192.168.2.15/Torrents /home/matt/GRUMPY/Torrents
sudo mount -t cifs -o rw,username=Matt,password=matt //192.168.2.15/Media /home/matt/GRUMPY/Media
sudo mount -t cifs -o rw,username=Matt,password=matt //192.168.2.15/Programs /home/matt/GRUMPY/Programs
GRUMPY is the name of my NAS :D by the way!
It mounts properly, BUT i cannot delete or rename files, so basically the user "matt" has read only privileges, and root has ownership of the mount.
How do I go about mounting these so that user "matt" has RW privileges ?
When I log on as root user and mount them, I can read and write as required, so this has led me to believe that my problem lies in my permissions for matt when mounting them...
Hope my ramble makes sense!
Cheers
Matt :neener:
I am completely new to Linux (using OpenSuse) and picking things up slowly.
I have a question about mounting my NV+.
When I mount it, i use the following commands when logged on as user "matt" :
sudo mount -t cifs -o rw,username=Matt,password=matt //192.168.2.15/Matts /home/matt/GRUMPY/Matts
sudo mount -t cifs -o rw,username=Matt,password=matt //192.168.2.15/Torrents /home/matt/GRUMPY/Torrents
sudo mount -t cifs -o rw,username=Matt,password=matt //192.168.2.15/Media /home/matt/GRUMPY/Media
sudo mount -t cifs -o rw,username=Matt,password=matt //192.168.2.15/Programs /home/matt/GRUMPY/Programs
GRUMPY is the name of my NAS :D by the way!
It mounts properly, BUT i cannot delete or rename files, so basically the user "matt" has read only privileges, and root has ownership of the mount.
How do I go about mounting these so that user "matt" has RW privileges ?
When I log on as root user and mount them, I can read and write as required, so this has led me to believe that my problem lies in my permissions for matt when mounting them...
Hope my ramble makes sense!
Cheers
Matt :neener:
10 Replies
Replies have been turned off for this discussion
- WhoCares_MentorTry adding the options 'nosetuids,noperm' after the 'rw' in your mount options and see whether that already fixes the problem. Also check that 'Matt' has proper permissions to access the local mount point.
-Stefan - Matt_MAspirantAdding that
sudo mount -t cifs -o rw nosetuids,noperm,username=Matt,password=matt //192.168.2.15/Media /home/matt/GRUMPY/Media
Just listed all the options for mount...
I must have my syntax incorrect ? - WhoCares_MentorYeah, as with all other options you should have separated them using a comma instead of a blank. So it'd be "-o rw,nosetuids,noperm,user=....."
-Stefan - Matt_MAspirantHey Stefan
Thanks for your replies, I tried that and got this message:
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
? - WhoCares_MentorWould need to try that locally to check what exactly the cause is. Can you enable verbose or debug output for the mount command so it maybe tells exactly where it is failing in the process?
-Stefan - Matt_MAspirantmount.cifs kernel mount options: ip=192.168.2.15,unc=\\192.168.2.15\Media,nosetuids,noperm,ver=1,user=Matt,pass=********
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Not sure how to enable verbose or debug :s - WhoCares_MentorNormally using the "-v" flag on the command line, like this "mount -v -t ......"
-Stefan - Matt_MAspirantHey Stefan,
Did the following, and got the following reply..
matt@linux-os2k:~> sudo mount -v -t cifs -o rw,nosetuids,noperm,username=Matt,password=matt //192.168.2.15/Media /home/matt/GRUMPY/Media
root's password:
mount.cifs kernel mount options: ip=192.168.2.15,unc=\\192.168.2.15\Media,nosetuids,noperm,ver=1,user=Matt,pass=******
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
matt@linux-os2k:~> - Matt_MAspirantAnyone ?
:twisted: - ewokNETGEAR ExpertIs there a reason you need to use CIFS? Your life may be much easier if you use NFS on Linux. :)
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!