![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script using awk works only as super user | gjithin | Shell Programming and Scripting | 10 | 05-09-2008 10:30 AM |
| Sunsolaris shell script runs only as super user | gjithin | SUN Solaris | 4 | 05-09-2008 09:47 AM |
| [Help] Give privilege to an ordinary user | ibmer414 | AIX | 1 | 04-08-2008 03:56 PM |
| switching user from root to ordinary user | sasia | Shell Programming and Scripting | 3 | 01-25-2008 10:25 PM |
| change user through shell script | raviraushanjha | UNIX for Dummies Questions & Answers | 0 | 12-12-2005 03:11 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How do i change to super user then revert back to ordinary user ,using shell script?
Hi all,
I am trying to eject the cdrom from a livecd after certain stage... Now assuming that it is possible to eject,please consider my issue!!! The OS boots into a regular user by default...so i am unable to use the eject command to push out the drive... However if i try pfexec eject it works....but then again it works only when the system is completely up and running not at some intermittent stage in the boot process. How do i change the my id to a Superuser then execute the eject command ,then once the eject is done with, i would like to revert back to the ordinary user? Secondly this code should be incorporated into one of the boot scripts, So that after a certain stage during the boot, the drive automatically ejects...... How do i do it..... PS:i urge you to consider that ejecting the media on a livecd is possible. Thanks |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|