[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Hi all



On Mon, 21 Jun 1999, Binand Raj S. wrote:

> Script started on Mon Jun 21 14:47:55 1999
> [binand@condor binand]$ cd bin
> [binand@condor bin]$ cp `which bash` .
> [binand@condor bin]$ sudo chown root.root ./bash
> Password:
> [binand@condor bin]$ sudo chmod 4755 ./bash
> [binand@condor bin]$ ls -l /etc/securetty 
> -rw-------   1 root     root           40 Sep  5  1995 /etc/securetty
> [binand@condor bin]$ ls -l ./bash
> -rwsr-xr-x   1 root     root       353944 Jun 21 14:48 ./bash
> [binand@condor bin]$ grep tty1 /etc/securetty 
> grep: /etc/securetty: Permission denied
> [binand@condor bin]$ ./bash -c "grep tty1 /etc/securetty"
> tty1
> [binand@condor bin]$ exit
> exit
> 
    I don't know about 'sudo'. That is not there in my system.
Is it a shell command or an application. but the method of
copying shell works with Unix systems( again, not in Sun version). Also
in SuSE. The only way i found is to set the uid to 0, before exec-ing
the shell
sudheer
 


- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
Linux India is NOT a forum for Microsoft/India/Pakistan/US/UK bashing.
Flame baits will not be tolerated.  If you can appreciate satire read
http://www.templetons.com/brad/emily.html

------------------------------