rouwe111
Posts: 2
Joined: Sat Apr 20, 2013 11:58 am

Mounting without need for password

Sat Apr 20, 2013 12:04 pm

Hi guys,

I am trying to mount a network drive on startup. Everytime it asks for a password. How can I mount my network drive without filling in the password?

I have created a new mount in /etc/fstab:

Code: Select all

//192.168.1.5/   /mnt/mediabox   cifs   noauto   0   0
In my rc.local file I added the line:

Code: Select all

mount /mnt/mediabox
Thanks for your help!

DirkS
Posts: 10363
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Mounting without need for password

Sat Apr 20, 2013 6:46 pm

You can pass the credentials / password to mount using the options switch ( -o).
See 'man mount.cifs' or e.g. http://linux.die.net/man/8/mount.cifs for more info.

Gr.
Dirk.

rouwe111
Posts: 2
Joined: Sat Apr 20, 2013 11:58 am

Re: Mounting without need for password

Sun Apr 21, 2013 12:46 am

DirkS wrote:You can pass the credentials / password to mount using the options switch ( -o).
See 'man mount.cifs' or e.g. http://linux.die.net/man/8/mount.cifs for more info.

Gr.
Dirk.
It worked! Thanks! :D

Return to “Troubleshooting”