RE: [gentoo-user] one more su problem

2005-03-26 Thread A. Khattri
On Fri, 25 Mar 2005, maxim wexler wrote:

  Useradd doesn't set the password - you must run
  passwd after adding the
  account.

 doesn't work

What passwd did you change?


-- 

--
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] one more su problem

2005-03-26 Thread maxim wexler

 emerge superadduser
 
 its a lot more thorough than useradd


same problem even after userdel'ing the previous
users. 

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
--
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] one more su problem

2005-03-26 Thread maxim wexler
 
 What passwd did you change?

arrgh! the _user's_



__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail
--
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] one more su problem

2005-03-25 Thread A. Khattri
On Thu, 24 Mar 2005, maxim wexler wrote:

 no, I used #useradd to create a user. So when it boots
 and stops at tux login: I can enter my username and
 then the user passwd and get the blue and yellow
 prompt ending in $. From there if I su I get the
 error.

Useradd doesn't set the password - you must run passwd after adding the
account.


-- 

--
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] one more su problem

2005-03-25 Thread Nick Rout
On Fri, 2005-03-25 at 11:51 -0500, A. Khattri wrote:
 On Thu, 24 Mar 2005, maxim wexler wrote:
 
  no, I used #useradd to create a user. So when it boots
  and stops at tux login: I can enter my username and
  then the user passwd and get the blue and yellow
  prompt ending in $. From there if I su I get the
  error.
 
 Useradd doesn't set the password - you must run passwd after adding the
 account.


emerge superadduser

its a lot more thorough than useradd
 
 
-- 
Nick Rout [EMAIL PROTECTED]

--
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] one more su problem

2005-03-25 Thread maxim wexler
 
 Useradd doesn't set the password - you must run
 passwd after adding the
 account.

doesn't work



__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail
--
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] one more su problem

2005-03-24 Thread Nick Rout
On Wed, 2005-03-23 at 19:24 -0800, maxim wexler wrote:
   Can you log in as the user at all?  Or are you
  trying only from su?
  
 only from su...don't know what this means. After boot
 I login as user or root. If, as user, I enter su, I
 get error, acct expired. Am I missing something, some
 gentoo-specific method here? When I ran slack or
 redhat I would su as user($), enter a password, and be
 presented with a root prompt(#) on the next line with
 all the privileges of root at my disposal.
 
  Are there any messages in /var/log/messages (or your
  equivalent) that might
  apply?
 
 almost positive, no. 

run it through strace and see what is happening.

 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 --
 gentoo-user@gentoo.org mailing list
 
-- 
Nick Rout [EMAIL PROTECTED]

--
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] one more su problem

2005-03-24 Thread Dave Nebinger
  Can you log in as the user at all?  Or are you
  trying only from su?
 
 only from su...

You should try to log in as the user specifically to ensure that the login
is not expired.

 don't know what this means. After boot
 I login as user or root. If, as user, I enter su, I
 get error, acct expired. Am I missing something, some
 gentoo-specific method here? When I ran slack or
 redhat I would su as user($), enter a password, and be
 presented with a root prompt(#) on the next line with
 all the privileges of root at my disposal.

Now I'm wondering what you're trying to do.  Are you trying to su to a user
or su to root?  If root, then it's more serious because root is never
supposed to expire.

  Are there any messages in /var/log/messages (or your
  equivalent) that might
  apply?
 
 almost positive, no.

Hmm, I get all kinds of messages for login failures; it's the only way to
handle auditing...


--
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] one more su problem

2005-03-24 Thread maxim wexler
 
 Now I'm wondering what you're trying to do.  Are you
 trying to su to a user

??? in user - root, like I said!! If I'm
already root where on earth could I su to? or why?




__ 
Do you Yahoo!? 
Yahoo! Sports - Sign up for Fantasy Baseball. 
http://baseball.fantasysports.yahoo.com/
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] one more su problem

2005-03-24 Thread Juergen Fiedler
On Thu, Mar 24, 2005 at 07:27:06AM -0800, maxim wexler wrote:
  
  Now I'm wondering what you're trying to do.  Are you
  trying to su to a user
 
 ??? in user - root, like I said!! If I'm
 already root where on earth could I su to? or why?

It is not uncommon to have users with an unknown/unset password - on
purpose. postgres is a common example. The most convenient way to work
as one of those users is to log in as root and then, e.g., 'su -
postgres'. Which doesn't solve your problem, but answers the question
at hand.

--j


signature.asc
Description: Digital signature


RE: [gentoo-user] one more su problem

2005-03-24 Thread Dave Nebinger
  Now I'm wondering what you're trying to do.  Are you
  trying to su to a user
 
 ??? in user - root, like I said!! If I'm
 already root where on earth could I su to? or why?

Su is just that - switch user.  I do it frequently from root to another
user, i.e. I want to test some changes that I made as root and want to see
what effect it has at a specific user/group level.

But that's neither here nor there.  I guess that you're saying when you do:

  [EMAIL PROTECTED] $ su

with no user, that's when you're getting the expired message, right?

Su has a couple of components that could possibly be interfering with the
process.  The first is pam; the file in /etc/pam.d/su has some doco that
plays a part and also speaks of other files that could also have some
effect.  You might want to check into those and ensure that the settings are
valid for what you are trying to do.



--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] one more su problem

2005-03-24 Thread Stanislaw Jesmanowicz
Did you add the user to group weel ?
That fix the 'su' poblem for me.
in /etc/group:
wheel:x:10:root,usr name
Dave Nebinger wrote:
Now I'm wondering what you're trying to do.  Are you
trying to su to a user
 

??? in user - root, like I said!! If I'm
already root where on earth could I su to? or why?
   

Su is just that - switch user.  I do it frequently from root to another
user, i.e. I want to test some changes that I made as root and want to see
what effect it has at a specific user/group level.
But that's neither here nor there.  I guess that you're saying when you do:
 [EMAIL PROTECTED] $ su
with no user, that's when you're getting the expired message, right?
Su has a couple of components that could possibly be interfering with the
process.  The first is pam; the file in /etc/pam.d/su has some doco that
plays a part and also speaks of other files that could also have some
effect.  You might want to check into those and ensure that the settings are
valid for what you are trying to do.

--
gentoo-user@gentoo.org mailing list
 

--
___
Stanislaw Jesmanowicz  [EMAIL PROTECTED]
--
gentoo-user@gentoo.org mailing list


Re: [gentoo-user] one more su problem

2005-03-24 Thread Neil Bothwick
On Thu, 24 Mar 2005 07:27:06 -0800 (PST), maxim wexler wrote:

 If I'm
 already root where on earth could I su to? or why?

Any other user. su stands for switch user not superuser.


-- 
Neil Bothwick

The only way to get rid of a temptation is to yield to it.


pgpLZmobP3C2V.pgp
Description: PGP signature


RE: [gentoo-user] one more su problem

2005-03-24 Thread maxim wexler

 Su is just that - switch user.  I do it frequently

my bad, thought it stood for super-user, ie root.

   [EMAIL PROTECTED] $ su
 
 with no user, that's when you're getting the expired
 message, right?


no, I used #useradd to create a user. So when it boots
and stops at tux login: I can enter my username and
then the user passwd and get the blue and yellow
prompt ending in $. From there if I su I get the
error.

 
 Su has a couple of components that could possibly be
 interfering with the
 process.  The first is pam; the file in
 /etc/pam.d/su has some doco that
 plays a part and also speaks of other files that
 could also have some
 effect.  You might want to check into those and
 ensure that the settings are
 valid for what you are trying to do.

could be. Here's the appropriate lines in the log:

Mar 24 21:10:45 [login(pam_unix)] session opened for
user bobolink by 
(uid=0)
Mar 24 21:10:47 [su] pam_acct_mgmt: User account has
expired

thanx
-mw



__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 
--
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] one more su problem

2005-03-24 Thread Nick Rout
please post each message obnce and once only - check your To: and cc:
fields BEFORE you press send - please!


On Thu, 2005-03-24 at 21:17 -0800, maxim wexler wrote:

(the same message twice)

--
gentoo-user@gentoo.org mailing list