Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
getting following error while changing the root password
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
punit
n00b
n00b


Joined: 06 Jan 2008
Posts: 7
Location: Nepal

PostPosted: Thu Jan 24, 2008 6:02 am    Post subject: getting following error while changing the root password Reply with quote

punit ~ # echo "root123" | passwd --stdin

passwd: unrecognised option `--stdin'
Usage: passwd [options] [LOGIN]

Options:
-a, --all report password status on all accounts
-d, --delete delete the password for the named account
-e, --expire force expire the password for the named account
-h, --help display this help message and exit
-k, --keep-tokens change password only if expired
-i, --inactive INACTIVE set password inactive after expiration
to INACTIVE
-l, --lock lock the named account
-n, --mindays MIN_DAYS set minimum number of days before password
change to MIN_DAYS
-q, --quiet quiet mode
-r, --repository REPOSITORY change password in REPOSITORY repository
-S, --status report password status on the named account
-u, --unlock unlock the named account
-w, --warndays WARN_DAYS set expiration warning days to WARN_DAYS
-x, --maxdays MAX_DAYS set maximim number of days before password
change to MAX_DAYS

Debian 4.0n megy most, Ubuntu 7.04en fog futni, ott is ezt valaszolja csak magyarul.
Back to top
View user's profile Send private message
misterbob05
Tux's lil' helper
Tux's lil' helper


Joined: 28 Apr 2007
Posts: 90

PostPosted: Thu Jan 24, 2008 6:11 am    Post subject: Reply with quote

unless im missing something


there is no --stidn option thats why its spitting that back at you



and if you even try -stidn it still wont work because -t isnt a valid option



no if you just use -Sidn all those are valid options for passwd



dont know what the output will be thou
Back to top
View user's profile Send private message
punit
n00b
n00b


Joined: 06 Jan 2008
Posts: 7
Location: Nepal

PostPosted: Thu Jan 24, 2008 3:26 pm    Post subject: Reply with quote

i used --stdin for standard input. The above command works for other distros such as Suse, Centos , etc.... and in UNIX.
so i was quite curious why it failed in gentoo.....

any special case with gentoo...?????

Anyways thank you for your reply.
Back to top
View user's profile Send private message
psycho_seba
n00b
n00b


Joined: 17 Dec 2003
Posts: 64
Location: Argentina

PostPosted: Thu Jan 24, 2008 3:43 pm    Post subject: Reply with quote

man chpasswd
Back to top
View user's profile Send private message
AdShea
n00b
n00b


Joined: 10 Mar 2005
Posts: 62

PostPosted: Thu Jan 24, 2008 6:56 pm    Post subject: Reply with quote

Why would you do that as root anyway? Your new root password would then be sitting on the process table for some length of time, while this might not be a problem, any other user/process can then find your password.
Back to top
View user's profile Send private message
punit
n00b
n00b


Joined: 06 Jan 2008
Posts: 7
Location: Nepal

PostPosted: Fri Jan 25, 2008 4:49 pm    Post subject: Reply with quote

i was just curious as it worked in other distros...
Thanks anyways for ur suggestions...
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Fri Jan 25, 2008 6:07 pm    Post subject: Reply with quote

Moved from Documentation, Tips & Tricks to Other Things Gentoo, since DT&T isn't a support forum.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9691
Location: almost Mile High in the USA

PostPosted: Fri Jan 25, 2008 7:27 pm    Post subject: Reply with quote

/usr/sbin/usermod (gentoo?) is another option for what you're after... using it, is an exercise left to the reader.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
8086
n00b
n00b


Joined: 12 Dec 2007
Posts: 52

PostPosted: Fri Jan 25, 2008 7:36 pm    Post subject: Reply with quote

What do you mean by "UNIX" when you say it works in UNIX?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum