Re: [newbie] Small question about command line

2002-04-16 Thread Ron Bouwhuis

Actually, better to use:

su - user

Without the minus sign, you just change your UID /
GID.  With the minus sign, it's just like logging in
as that user, running their login scripts, initiating
their user environment variables, etc, which is
probably what you want when testing a user config.

Ron.

--- Warren Post <[EMAIL PROTECTED]> wrote:
> As root, enter:
> 
> su user
> 
> to change to account "user"
> 
> Warren
> 
> On Mon, 15 Apr 2002 15:21:07 -0300 (ART)
> Lúcio Costa de Almeida <[EMAIL PROTECTED]> wrote:
> 
> > Hello Everybody...
> > 
> > I'm trying to improve my skills in command line.  
> > What I'd like to do..  
> > I'm logged as root and must test some user
> > configurations.  
> > What command I'll use, in shell, to change to this
> > user ???  
> > root ---> simple user  
> >   
> > Ex:[root@Sparta] login user -> [user@Sparta]
> 
> > Want to buy your Pack or Services from
MandrakeSoft?
> 
> Go to http://www.mandrakestore.com
> 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Small question about command line

2002-04-16 Thread Warren Post

As root, enter:

su user

to change to account "user"

Warren

On Mon, 15 Apr 2002 15:21:07 -0300 (ART)
Lúcio Costa de Almeida <[EMAIL PROTECTED]> wrote:

> Hello Everybody...
> 
> I'm trying to improve my skills in command line.  
> What I'd like to do..  
> I'm logged as root and must test some user
> configurations.  
> What command I'll use, in shell, to change to this
> user ???  
> root ---> simple user  
>   
> Ex:[root@Sparta] login user -> [user@Sparta]



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Small question about command line

2002-04-16 Thread g

Pascal Goguey wrote:
>
> On 2002 April 16 Tuesday 02:39, you wrote:
>
>> 'su' means _superuser_, not 'substitute user', which it does.
>
>>From man pages:
>
> NAME
>
> su - substitute user identity
>
> SYNOPSIS
>
> su [-Kflm] [login [shell arguments]]
>
> etc...
>
> Pascal

i could claim various reason for inversion, but i will just say
that some times thinking gets ahead of typing and above results
when i fail to go back over messages before sending.

as much as i hate to see and hear people calling 'su' 'superuser',
and then i go and write it out wrong.

i guess it just proves that some cloning is good, some is bad. ;)

oh, well. at least i told him to 'man su'.

thank you for correcting my error.


tc,hago.

g
.
--
 think green...  save a tree, save a life, save time, save bandwidth,
  save storage.   send email,   text/plain - disable pgp/gpg/geek code
=+=
 if you are proud to be an american, then buy "made in america".



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Small question about command line

2002-04-15 Thread Pascal Goguey

On 2002 April 16 Tuesday 02:39, you wrote:

> 'su' means _superuser_, not 'substitute user', which it does.


>From man pages:

NAME

su - substitute user identity

SYNOPSIS

su [-Kflm] [login [shell arguments]]

etc...

Pascal



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Small question about command line

2002-04-15 Thread g

Lúcio Costa de Almeida wrote:

> What command I'll use, in shell, to change to this
> user ???
> root ---> simple user

  su username

ie, if you are logged in a root, and you enter 'su simple',
you would become user simple.

if you are logged in a simple, and you enter 'su root',
you would become user root. provided you know root pw.

if you are root, you can 'su username' with out pw.

'su' means _superuser_, not 'substitute user', which it does.


at cl, enter 'man su' for more help.


tc,hago.

g
.
--
 think green...  save a tree, save a life, save time, save bandwidth,
  save storage.   send email,   text/plain - disable pgp/gpg/geek code
=+=
 beauty of real is revealed only to those who persevere.
 old orthodox saying.
=+=
 perseverance can be a virtue.
 new orthodox saying
=+=
 perseverance can be a reward.
 renewed knowledge of old orthodox custom
=+=
 http://home.mem.net/~leem/
=+=
 may God bless,
   and have mercy | take care, have a good one
  slaying dragons | linux + firewalls + wrappers + spoof = fence to gates
=+=
 if you are proud to be an american, then buy "made in america".
=+=




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Small question about command line

2002-04-15 Thread Charles A Edwards

On Mon, 15 Apr 2002 15:21:07 -0300 (ART)
Lúcio Costa de Almeida <[EMAIL PROTECTED]> wrote:

> Hello Everybody...
> 
> I'm trying to improve my skills in command line.  
> What I'd like to do..  
> I'm logged as root and must test some user
> configurations.  
> What command I'll use, in shell, to change to this
> user ???  
> root ---> simple user  
>   
> Ex:[root@Sparta] login user -> [user@Sparta]
> 
> I used the command: login, but Shell closed.
>  

[root@localhost charles]# su charles
[charles@localhost charles]$

You can use su to become any user, not just root.


Charles
 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



[newbie] Small question about command line

2002-04-15 Thread Lúcio Costa de Almeida

Hello Everybody...

I'm trying to improve my skills in command line.  
What I'd like to do..  
I'm logged as root and must test some user
configurations.  
What command I'll use, in shell, to change to this
user ???  
root ---> simple user  
  
Ex:[root@Sparta] login user -> [user@Sparta]

I used the command: login, but Shell closed.

Can You Help Me.

=
Um abraço,
Lúcio Costa

" Mais importante que saber Tudo,
é descobrir que podemos estar sempre Aprendendo"
LC Almeida (1998)

___
Yahoo! Empregos
O trabalho dos seus sonhos pode estar aqui. Cadastre-se hoje mesmo no Yahoo! Empregos 
e tenha acesso a milhares de vagas abertas!
http://br.empregos.yahoo.com/



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com