[ubuntu] using mount command without root….

I want to create a scenario where I can use the mount command in a terminal without requiring root. I do this because I want to use a script that will automatically mount a few ctfs partitions that I don’t want mounted at all times, perform a few backup copies, then unmount said partitions.

I have my current script set with:

Code:

mount -t cifs -o username=fakeusername,password=fakepassword //192.168.1.224/80gb.wndws /media/wndws

to un-mount the drive, then a simple

Code:

umount /media/wndws

type of scenario.

Currently, the script works fine, however I have to open a terminal and run it as root. I would like some way of mounting these partitions (without fstab mounting them at boot) as a regular user so that I can simply execute this script as I save my documents.

Leave a Reply

You must be logged in to post a comment.