auto sudo root

7D8

In Runtime
Messages
209
hi, I'm using Debian and am trying to setup an sh script that will mount a drive.

Debian by default allows this action to be performed by root. Which is fine with me. However, I need to:

  1. Login as root
  2. Mount Drive
  3. Exit

i tried doing:

Code:
su root
echo mypass

but that didn't seem to take. I would like to avoid making my user a sudoer.

Any ideas?

SOLVED: ahh... solved it another way. Added the volume into /etc/fstab and now it auto mounts. :) go me!
 
Back
Top Bottom