Mesaje recente

Members
Stats
  • Total Posts: 17,786
  • Total Topics: 1,234
  • Online today: 211
  • Online ever: 340
  • (22 November 2024, 00:10)
Users Online
Users: 0
Guests: 205
Total: 205

nu reusesc un useradd cu variabile...

Started by kquizak, 02 October 2007, 15:25

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kquizak


VAR="6caractere"
export VAR
useradd $VAR -p $VAR
#sau
useradd $VAR -p `echo $VAR`

desi userul se creaza parola nu e cea din variabila(login incorect)...in nici unul din cazuri
...ceva imi scapa...dar nu stiu ce...
network-tools.ath.cx ---nmap yourself

kman

citat din man useradd
       -p, --password PASSWORD
          The encrypted password, as returned by crypt(3). The default is to
          disable the account.


Deci ... e destul de evident, parola nu in clar ci codata. ... si daca nu ma insel, login-ul trebuie sa fie la urma.