01-30-2008
Thank you for your help,
I'm reading about mksysb and NIM.
However, fortunately, I have another account can login, and I used "su -c 'vi /etc/passwd' " to solve my problem.
However, that's a lucky circumstance, and I going to study NIM.
Thank you very much.
Best Regards.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i mistyped the location of bash and now i can't login as the only other user who belongs to wheel on my freebsd box.
since i'm having many problems with samba, this has frozen my attempts to get things resolved with the former issue.
i've been told that 'su -m' should do the trick, but it's... (3 Replies)
Discussion started by: xyyz
3 Replies
2. Answers to Frequently Asked Questions
We have quite a few threads about this subject. I have collected some of them and arranged them by the OS which is primarily discussed in the thread. That is because the exact procedure depends on the OS involved. What's more, since you often need to interact with the boot process, the... (0 Replies)
Discussion started by: Perderabo
0 Replies
3. UNIX for Dummies Questions & Answers
All,
I want to run a non-root script as the root user with non-root environment variables with crontab. The non-root user would have environment variables for database access such as Oracle or Sybase. The root user does not have the Oracle or Sybase enviroment variables. I thought you could do... (2 Replies)
Discussion started by: bubba112557
2 Replies
4. Shell Programming and Scripting
Does anybody know how to make a shell script that finds all the times that any user su'ed to root and create a cron job sends that file output via e-mail to one user?
Thanks!:confused: (1 Reply)
Discussion started by: jrvilino
1 Replies
5. Debian
hello friends,
one user is created named "user1"
I login as "user1" . Now when i do "su -" to be root user I have to give password for root .
Is there any way through which we can skip giving the password to root.
i.e.
user1@work:~$ su -
Password: xxxxxx
work:~$
I don't want that... (1 Reply)
Discussion started by: pradeepreddy
1 Replies
6. Solaris
HI i am trying to give su access to some users say X Y and Z to a account AB . I am able to give them su access to root with the help of sudoers file but i want to give them password less access to AB account which i am not able to do .
I want to this
when user X fires "su - AB" he is not... (9 Replies)
Discussion started by: rishiraaz
9 Replies
7. UNIX for Advanced & Expert Users
Hi,
My server is running with high cpu utilization (98%), i found all the application jobs running under root account. I suspect this may be the reason. Pls suggest.
---------- Post updated at 06:26 PM ---------- Previous update was at 06:25 PM ----------
OS version is Solaris 5.8 (3 Replies)
Discussion started by: paventhan
3 Replies
8. Solaris
Hi All
After downloading ZFS documentation from oracle site, I am able to successfully migrate UFS root FS without zones to ZFS root FS. But in case of UFS root file system with zones , I am successfully able to migrate global zone to zfs root file system but zone are still in UFS root file... (2 Replies)
Discussion started by: sb200
2 Replies
9. Shell Programming and Scripting
I need to list users in /etc/passwd with root's GID or UID or /root as home directory
If we have these entries in /etc/passwd
root:x:0:0:root:/root:/bin/bash
rootgooduser1:x:100:100::/home/gooduser1:/bin/bash
baduser1:x:0:300::/home/baduser1:/bin/bash... (6 Replies)
Discussion started by: anil510
6 Replies
10. Red Hat
Hi,
I find there is some customized linux with application.
When I use login account root and type the password.
It is not allow to login.
But if I login with specified user and password.
Then I use command "su - " and type root passwd.
It allow you to switch to "root" account .
Or if i... (14 Replies)
Discussion started by: chuikingman
14 Replies
LEARN ABOUT REDHAT
sulogin
SULOGIN(8) Linux System Administrator's Manual SULOGIN(8)
NAME
sulogin -- Single-user login
SYNOPSIS
sulogin [ -e ] [ -p ] [ -t timeout ] [ tty-device ]
DESCRIPTION
sulogin can be invoked by init(8) when the system goes into single user mode (this is done through an entry in inittab(5)). Init also tries
to execute sulogin when it is passed the -b flag from the bootmonitor (eg, LILO).
The user is prompted
Give root password for system maintenance
(or type Control-D for normal startup):
sulogin will connected to the current terminal, or to the optional device that can be specified on the command line (typically /dev/con-
sole).
If the -p flag was set, the single-user shell will be invoked with a dash as the first character in argv[0]. That will cause most shells to
behave as a login shell. The default is not to do this, so that the shell will not read /etc/profile or $HOME/.profile at startup.
After the user exits the single-user shell, or presses control-d at the prompt, the system will (continue to) boot to the default runlevel.
ENVIRONMENT VARIABLES
sulogin looks for the environment variable SUSHELL or sushell to determine what shell to start. If the environment variable is not set, it
will try to execute root's shell from /etc/passwd. If that fails it will fall back to /bin/sh.
This is very valuable together with the -b flag to init. To boot the system into single user mode, with the root file system mounted
read/write, using a special "failsafe" shell that is statically linked (this example is valid for the LILO bootprompt)
boot: linux -b rw sushell=/sbin/sash
FALLBACK METHODS
sulogin checks the root password using the standard methods first. If the -e option was specified, sulogin examines the next files to find
the root password. If they are damaged, or non-existant, it will use fallback methods that even go so far as to provide you with a shell
prompt without asking for the root password if they are irrepairably damaged.
/etc/passwd,
/etc/shadow (if present)
AUTHOR
Miquel van Smoorenburg <miquels@cistron.nl>
SEE ALSO
init(8), inittab(5).
11 Sep 2000 SULOGIN(8)