* Force the user to "su"
@ 2001-10-22 22:42 Bill
2001-10-22 23:23 ` Adam Price
0 siblings, 1 reply; 4+ messages in thread
From: Bill @ 2001-10-22 22:42 UTC (permalink / raw)
Hello ALL,
I have a question, How can force the user to login to his account and
"su" to another account (not root) on the system?
NOTE: the user knows both passwords, for his account and for the
account he needs to "su" to, that's why i used the term "force".
I want them not to login to that account, but instead to "su" to it,
so i have a trace on who is on the system, because this account is
used by a group of people, and when i do a "who" or "w" i see the same
username for all.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Force the user to "su"
2001-10-22 22:42 Force the user to "su" Bill
@ 2001-10-22 23:23 ` Adam Price
2001-10-23 2:29 ` D. Aaron Sawyer
0 siblings, 1 reply; 4+ messages in thread
From: Adam Price @ 2001-10-22 23:23 UTC (permalink / raw)
"Bill" <william_souza@yahoo.com> wrote in message news:be6c7217.0110221442.7291447d@posting.google.com...
> Hello ALL,
>
> I have a question, How can force the user to login to his account and
> "su" to another account (not root) on the system?
>
> NOTE: the user knows both passwords, for his account and for the
> account he needs to "su" to, that's why i used the term "force".
>
> I want them not to login to that account, but instead to "su" to it,
> so i have a trace on who is on the system, because this account is
> used by a group of people, and when i do a "who" or "w" i see the same
> username for all.
Put an exit in the .profile for the shared user, that way users who log in directly
as the shared user will get logged out straight away, but users who log in as themselves
and su will get access.
Adam
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Force the user to "su"
2001-10-22 23:23 ` Adam Price
@ 2001-10-23 2:29 ` D. Aaron Sawyer
2001-10-23 5:30 ` Adam Price
0 siblings, 1 reply; 4+ messages in thread
From: D. Aaron Sawyer @ 2001-10-23 2:29 UTC (permalink / raw)
Alternately, render the shared user account not-login-able.
Edit /etc/passwd, the <shared_user> line, replace the encrypted password+salt
(between 1st & 2nd ':')
with something the encryption algorithm is _extremely_ unlikely to generate.
E.g., '*', or '*NoLogin*'.
shared_user:*:uid:gid:GCOS comment field:homedir:shell
Specify /bin/rsh for the shell if you are feeling generous, /bin/true if nasty.
Above to be modified appropriately in the presence/use of shadow password file
and/or enhanced security.
Should prevent 'su - shared_user' as well.
=Aaron
Adam Price wrote:
>
> "Bill" <william_souza@yahoo.com> wrote in message news:be6c7217.0110221442.7291447d@posting.google.com...
> > Hello ALL,
> >
> > I have a question, How can force the user to login to his account and
> > "su" to another account (not root) on the system?
> >
> > NOTE: the user knows both passwords, for his account and for the
> > account he needs to "su" to, that's why i used the term "force".
> >
> > I want them not to login to that account, but instead to "su" to it,
> > so i have a trace on who is on the system, because this account is
> > used by a group of people, and when i do a "who" or "w" i see the same
> > username for all.
> Put an exit in the .profile for the shared user, that way users who log in directly
> as the shared user will get logged out straight away, but users who log in as themselves
> and su will get access.
>
> Adam
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Force the user to "su"
2001-10-23 2:29 ` D. Aaron Sawyer
@ 2001-10-23 5:30 ` Adam Price
0 siblings, 0 replies; 4+ messages in thread
From: Adam Price @ 2001-10-23 5:30 UTC (permalink / raw)
Post rearranged top down for clarity,
"D. Aaron Sawyer" <aaron@110.net> wrote in message news:3BD4D617.94DBFECB@110.net...
> > Adam Price wrote:
> > >
> > > "Bill" <william_souza@yahoo.com> wrote in message news:be6c7217.0110221442.7291447d@posting.google.com...
> > > > Hello ALL,
> > > >
> > > > I have a question, How can force the user to login to his account and
> > > > "su" to another account (not root) on the system?
> > > >
> > > > NOTE: the user knows both passwords, for his account and for the
> > > > account he needs to "su" to, that's why i used the term "force".
> > > >
> > > > I want them not to login to that account, but instead to "su" to it,
> > > > so i have a trace on who is on the system, because this account is
> > > > used by a group of people, and when i do a "who" or "w" i see the same
> > > > username for all.
>
> > > Put an exit in the .profile for the shared user, that way users who log in directly
> > > as the shared user will get logged out straight away, but users who log in as themselves
> > > and su will get access.
> > >
> > > Adam
> Alternately, render the shared user account not-login-able.
>
> Edit /etc/passwd, the <shared_user> line, replace the encrypted password+salt
> (between 1st & 2nd ':')
> with something the encryption algorithm is _extremely_ unlikely to generate.
> E.g., '*', or '*NoLogin*'.
>
> shared_user:*:uid:gid:GCOS comment field:homedir:shell
>
> Specify /bin/rsh for the shell if you are feeling generous, /bin/true if nasty.
>
> Above to be modified appropriately in the presence/use of shadow password file
> and/or enhanced security.
> Should prevent 'su - shared_user' as well.
Which of course was exactly NOT what the OP asked for.
I read that the OP needed an account that people could ONLY su to, not log in.
That meant that my solution would work, since normal logins run the .profile but
su (without the -) doesn't.
Adam
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-10-23 5:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-22 22:42 Force the user to "su" Bill
2001-10-22 23:23 ` Adam Price
2001-10-23 2:29 ` D. Aaron Sawyer
2001-10-23 5:30 ` Adam Price
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox