Find the answer to your Linux question:
Results 1 to 2 of 2
How can I su to root to mount a file system inside a script, of course I have the root password. Thanks....
  1. #1
    Just Joined!
    Join Date
    Mar 2007
    Posts
    1

    Smile su to root inside a cript

    How can I su to root to mount a file system inside a script,
    of course I have the root password.
    Thanks.

  2. #2
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,413
    I'm not sure if that's possible. You could run the script as root, and then you'd have the right permissions.
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...