[Ilugc] passing password as argument to su command
Prashanth Mohan
prashmohan at gmail.com
Sat Apr 16 22:13:07 IST 2005
Sorry to top post.. but the problem isnt gone yet...
This is the problem i was telling you. at present suppose i do a
simple "su" at the command line and exeucte the script.. i get this
error....
setting up USB support (1/5)..
loading preliminary USB device filesystem
mount: fs type usbdevfs not supported by kernel
usbdevfs mounted successfully
/usr/local/bin/startmodem: line 137: lsmod: command not found
/usr/local/bin/startmodem: line 151: lsmod: command not found
/usr/local/bin/startmodem: line 168: lspci: command not found
/usr/local/bin/startmodem: line 211: lspci: command not found
but if i do a "su -" or "su -l" at the command line and execute the
script.. i connect properly.. apparently sudo does something that is
similar to "su" and not "su -". is there some way that i can make sudo
do the difference?
Thank you,
On 4/14/05, Natarajan K <knutties at gmail.com> wrote:
> On 4/13/05, Prashanth Mohan <prashmohan at gmail.com> wrote:
> > Hello
> >
> > By hostname do u mean localhost? (sorry i know its a real dumb question)
> > so the line i put into the file should be something like this?
> > "prashmohan localhost=NOPASSWD:/usr/home/prash/connect.sh"
>
> Yup. Thats what I meant. You could also leave it as ALL. It would also
> work just as fine. It specifies the host on which that particular sudo
> rule applies.
>
> Now I have a doubt, what exactly is the significance of the
> hostname/host_alias is a sudoers line? Is it just to maintain the same
> sudoers file across many servers?
>
> Cheers,
> Natarajan
> _______________________________________________
> To unsubscribe, email ilugc-request at ae.iitm.ac.in with
> "unsubscribe <password> <address>"
> in the subject or body of the message.
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>
--
Prashanth Mohan
http://prashanthmohan.tk
http://prashmohan.blogspot.com
---
Why geeks like computers: unzip, strip, touch, finger, grep, mount,
fsck, more, yes,fsck,fsck,fsck,umount, sleep.
10 Sin
20 goto Hell
---
More information about the ilugc
mailing list