Results 1 to 10 of 13
the last filed of /etc/passwd file is the login_shell;
how if I replace it to /usr/bin/date
what would it happen.
by the way
I try to use $ su
but ...
- 06-22-2010 #1Just Joined!
- Join Date
- Jun 2010
- Posts
- 16
[SOLVED] about /etc/passwd
the last filed of /etc/passwd file is the login_shell;
how if I replace it to /usr/bin/date
what would it happen.
by the way
I try to use $ su
but do't know the password.
what s the default root passworf for ubuntu
- 06-22-2010 #2
use this to set the root password:
Code:sudo passwd root
- 06-22-2010 #3
In Ubuntu use
sudo command
and give your passwordIf we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)
My new blog. It's probably not as good as I think it is.
- 06-22-2010 #4Jay
New users, read this first.
New Member FAQ
Registered Linux User #463940
I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.
- 06-22-2010 #5Just Joined!
- Join Date
- Jun 2010
- Posts
- 16
yea
I have tried that. type my first account password, and blank password.
didn't work.
and I tried to change my login shell by chsh and attempt to change to /usr/bin/date
it didn't allow.
thx for replaying.
Could anyone just tell me what would happend when the last filed of /etc/passwd
is /usr/bin/date
- 06-22-2010 #6
Typically, I would advise against editing /etc/passwd by hand.
What is it that you're trying to accomplish?Jay
New users, read this first.
New Member FAQ
Registered Linux User #463940
I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.
- 06-23-2010 #7Just Joined!
- Join Date
- Jun 2010
- Posts
- 16
yea i have tried that .
It didn't allow me to do that, if i change anything .i will unable to save it.
what would happend when the last filed of /etc/passwd
is /usr/bin/date
this is what i want.
thx
- 06-23-2010 #8will get you into rootCode:
sudo su
from there you can use passwd to set a password so you can just use
from then onCode:su
- 06-23-2010 #9Just Joined!
- Join Date
- Jun 2010
- Posts
- 16
thx
sudo su
works.
but when I change the last filed of /etc/passwd
seems nothing change. is that right?
I guess should be somewhere difference.
- 06-23-2010 #10Just Joined!
- Join Date
- Jun 2010
- Posts
- 16
damn.
I use sudo su
and chsh
then i change to /usr/bin/date
and exit the terminal
then i open the terminal again
and try chsh ,did't allow
and sudo su
it appears
Cannot execute /usr/bin/date: No such file or directory





