Please note that LinuxExchange will be shutting down on December 31st, 2016. Visit this thread for additional information and to provide feedback.

I can mount a windows file share with sudo mount -t cifs -o credentials=~/Files/server-mount/credentials //sbs2008/local ~/Files/server-mount/. I would like to do this but:

  • Without root privileges. (I can do this one, if I solve the other two.)
  • Without storing password, unencrypted.
  • Automatically on login.

I am using kubuntu 11.10

asked 29 Feb '12, 09:05

daves%20dad's gravatar image

daves dad
1136
accept rate: 0%

edited 17 Apr '12, 10:37




Without root privileges - Setup the share in fstab

Without storing password - Make the "Everyone" user available with full access in the advanced permissions (sharing) on Windows PC

Automatically on login - Setup the share in fstab

link

answered 29 Feb '12, 18:10

Ron's gravatar image

Ron ♦
9361718
accept rate: 13%

Yes fstab is a good idea (It does require root to set up, but you saw me use sudo above so know I can do this.). However the solution to stoping someone copying the key, is to remove the lock, is not going to help.

(01 Mar '12, 05:33) daves dad

What is your ultimate goal? Maybe you don't want to do a Windows fire share at all, maybe setting up an autossh is the way to do it using keys, or an SFTP deal, more info please.

(01 Mar '12, 17:40) Ron ♦

Usualy I use sshfs, but I need access to a windows cifs file share. We can not give access to everyone so authentication is necessary. I do not want the password stored on the laptop, as a lost laptop will allow access (even if root only readable). With sshfs I store the key encrypted with a passphrase. If I had a solution that needed root privileges I can wrap it in a set uid.

(17 Apr '12, 10:33) daves dad

I could be wrong but I think the mount command ALWAYS requires root privileges to run.

The best you can do, is to make ~/Files/server-mount/credentials read-only by root and do not share the root password.

link

answered 17 Apr '12, 07:56

Seth%20Brown's gravatar image

Seth Brown
111
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×12
×7
×6
×2

Asked: 29 Feb '12, 09:05

Seen: 2,738 times

Last updated: 17 Apr '12, 10:37

powered by OSQA