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
//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.
OpenSuse 11.4 64bit plus some 32.