LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-02-2011, 02:58 PM   #1
ajohn
Member
 
Registered: Jun 2011
Location: UK
Distribution: OpenSuse Leap
Posts: 122

Rep: Reputation: Disabled
Unhappy Mount blues and a headache at times on a nas


I'm trying to find a work around for a problem with kde dolphin microsoft network drive connections such that all apps can read and write to the nas rather than just kwrite. Already been down the samba route. Slow and no better. What I am trying to do may be impossible.

I have found one solution. Adding this line plus password file to fstab
Code:
//192.168.1.20/Volume_1 /home/john/Desktop/NAS cifs uid=john,gid=users 0 0
The problem with this is that the folder on my desktop allows even others to view content. I really need to restrict it to me and root. The name and password gives full access to the nas. Have had no luck discovering the correct incantations and am hoping some one can help. I also assume that similar fstab lines could be added for other users of the pc?

I don't see this as the best way to get the job done though. Ideally I would like it to function just as a the dolphin type connect does. Click on the folder, get asked for a password and dolphin fire up. To this end I've written a noddy bash script file to obtain the password, mount the nas and then fire up dolphin via a click on an icon on the desktop. At this point I find that a shell script doesn't inherit root rights so mount come up with "only root can do this". (Have only run it in the console at the moment as well but the dialog box does come up).Sudo's out as there would be 2 passwords. Reading about mount gave me a slight indication that the command line arrangement is some what dependant on what is in fstab. No idea where I got that from. I'm hoping that there is an fstab line that just prepares for a user mount, doesn't need the nas password and does nothing else. Or even an easier solution. Even with this solution I would need to sort the permissions out.

I should add that I'm a none pc none linux software engineer and only really work on the desktop and only reluctantly go below if I have no other choice. Knowledge in that direction is scant.

-
John
OpenSuse 11.4 64bit plus some 32.
-
 
Old 06-02-2011, 07:36 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi, welcome to LQ!

Just off the top of my head:
Try replacing the gid w/ root, and add a mode that prohibits 'other',

group=root,file_mode=0750,dir_mode=0750


Cheers,
Tink
 
Old 06-03-2011, 04:18 AM   #3
ajohn
Member
 
Registered: Jun 2011
Location: UK
Distribution: OpenSuse Leap
Posts: 122

Original Poster
Rep: Reputation: Disabled
Thanks. I assume I could also create a nas group and only put me an root in it? As I read the above I wouldn't be able to access it? Also another group nas2 could be used for others?

I picked up that mode may have something to offer but as per usual man is full of info on mount but I can't find flag setting syntax anywhere. Having taken a guess I just looked at man chmod(2) and see flag specifications. Are these the same?

I'm surprised there isn't a hyper text or html version on man as it could make life a lot easier. Hyper text mentioned as it's been around for donkeys years. A sort of for runner of html using links in much the same way.

Thanks
John

-
 
  


Reply



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
Using pam_mount to mount Homefolder on Nas S1GNZ Linux - Server 3 01-12-2011 07:23 PM
How to mount a NAS drive in Linux? mensfort Linux - Newbie 3 11-21-2010 08:24 AM
Why unable to mount my nas in fstab get "mount error(5) Input/output error fi5ban Linux - Networking 0 04-01-2009 10:42 AM
Kubuntu NAS mount problems... tkienzle Linux - Hardware 7 08-06-2008 10:25 AM
Need to mount a XFS NAS device psalms1 Red Hat 3 09-16-2007 05:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:55 PM.

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