LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-17-2007, 03:54 AM   #1
chiefmac
LQ Newbie
 
Registered: Aug 2005
Location: Portsmouth, England
Distribution: Suse 10.1
Posts: 4

Rep: Reputation: 0
Question Only root can chmod on mounted LinkStation NAS - how should I mount?


I have a new Buffalo Linkstation Pro NAS attached to my router. Only root has full access to it. It's mounted in fstab and I've tried lots of variations, but it's always only root that can chmod any files on the mounted NAS. All other users get 'Operation not permitted'

I've tried mounting it as smbfs and cifs. I've tried various options including things like uid=1000, file_mode=0777, rw, etc. I've found comments on all of these things on various forums, but I can't get any combination to work. I also found some suggestions about the mount point needing to be owned by the ordinary user (not root), so I tried chown USER_ID /mnt/linkstation to no avail.

Here's my current fstab entry:

Code:
//linkstation/share  /mnt/linkstation     smbfs      users,guest,rw,uid=1000,file_mode=0777,dir_mode=0777,iocharset=iso8859-1,codepage=cp850,cp850 0 0
I've only been using Linux for a year or so, so I'm no expert and maybe I'm missing something obvious. Can anyone give me some pointers pls?

My final aim is to use a cron job to synchronise local directories with the NAS via Unison. I'm running SUSE 10.1 kernel 2.6.16.21-0.25-default x86_64
 
Old 08-17-2007, 12:48 PM   #2
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 581

Rep: Reputation: 38
After the NAS is mounted, do a chmod on /mnt/linkstation to give everyone the access you need.

Cheers.
 
Old 08-20-2007, 12:13 PM   #3
chiefmac
LQ Newbie
 
Registered: Aug 2005
Location: Portsmouth, England
Distribution: Suse 10.1
Posts: 4

Original Poster
Rep: Reputation: 0
Thumbs down

Thanks for the suggestion. I tried that with no success. First of all, as root, I get a Permission Denied message on /mnt/linkstation. And I shouldn't need to do it anyway, since the directory has 777 permission. Yet still only root can chmod any file below this. Any further suggestions?
 
Old 10-14-2007, 07:21 AM   #4
drphile
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0
Bump!

I'd also be very interested if anyone can suggest a way to allow users other than root to write as well as read files on a Linkstation disc.

I'm on the latest Mandriva, which helpfully auto-mounts the Linkstation at boot on /mnt/Linkstation but only allows read access (unless you're root). Note I can get full access as non-root if I explicitly connect via smb://username@linkstation, which is fine as far as it goes but is inconvenient. I can not get full access via the mount point.

Phil
 
Old 10-14-2007, 10:38 AM   #5
drphile
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0
Problem solved - it seems all you have to do is supply your uid & gid as extra options in the Mandriva Control Centre network share setup.
 
Old 08-07-2008, 03:27 PM   #6
Kobiashi007
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Rep: Reputation: 0
Wink More help please

Quote:
Originally Posted by drphile View Post
Problem solved - it seems all you have to do is supply your uid & gid as extra options in the Mandriva Control Centre network share setup.

I also have a linkstation that i am using with Mandriva - i can access it and all the files on it but i cannot write to it ??

I have been into Mandriva control centre - and NFS shares Draknfs entry - iassume this is correct but i am not sure what i am doing from there ?? yes i am a newbie - i just need to be able to write to this drive can you help me ??
 
  


Reply

Tags
mount, nas, samba



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS Root setup - can't log in as root after CHMOD ? gallwapa Linux - General 1 04-02-2007 04:31 AM
trouble with permissions on mounted fs -- chmod 777 => rwxr-xr-x FirebirdV0273 Linux - General 5 03-21-2006 08:19 AM
Problem in using chmod with mounted folder casper234 Linux - General 5 02-13-2006 08:45 AM
user cant mount after chmod 777 /bin/mount misterwiddle Linux - General 2 04-06-2005 05:36 PM
SCRIPT: check if auto-mount mount-points are still mounted markus1982 Linux - Software 0 05-25-2003 05:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration