View previous topic :: View next topic |
Author |
Message |
TeoBì Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 31 May 2004 Posts: 150
|
Posted: Mon Oct 04, 2004 2:10 pm Post subject: [Tip]Aggiungere user con il "punto" nel nome[RIS.] |
|
|
Ciao ragazzi,
avrei bisogno di far accettare al sistema utenti che hanno uno o più "punti" nel nome, ad esempio: pippo.pluto
Se provo a fare:
Code: |
useradd pippo.pluto
|
ho il seguente errore:
Code: | useradd: invalid user name 'pippo.pluto' |
Grazie per l'aiuto in anticipo.
Last edited by TeoBì on Mon Oct 04, 2004 5:36 pm; edited 3 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fedeliallalinea Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/161653968057192eb39329f.jpg)
Joined: 08 Mar 2003 Posts: 31019 Location: here
|
Posted: Mon Oct 04, 2004 2:17 pm Post subject: |
|
|
Non penso si possa. Prova a farlo con l'underscore pippo_pluto _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
silverfix Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/11136191183e78c2de8cdf8.gif)
Joined: 19 Mar 2003 Posts: 146 Location: born: Foggia - now: Bari
|
Posted: Mon Oct 04, 2004 2:58 pm Post subject: |
|
|
infatti non si può perchè il sistema dopo il punto si aspetta il gruppo:
nomeutente.nomegruppo
l'unica è l'underscore
![Wink :wink:](images/smiles/icon_wink.gif) _________________ SilverFix - a happy Linux user! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
TeoBì Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 31 May 2004 Posts: 150
|
Posted: Mon Oct 04, 2004 5:38 pm Post subject: |
|
|
Grazie mille per la delucidazione. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
comio Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/761284344415a971047e47.gif)
Joined: 03 Jul 2003 Posts: 2191 Location: Taranto
|
Posted: Mon Oct 04, 2004 5:46 pm Post subject: |
|
|
modificare direttamente i file passwd e shadow? (e sfidando la sorte?)
ciao _________________ RTFM!!!!
e
http://www.comio.it
![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
n3mo l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/10337836184209d4f03bfcf.png)
Joined: 28 Mar 2004 Posts: 657 Location: In a Cruel World
|
Posted: Mon Oct 04, 2004 5:48 pm Post subject: |
|
|
Io non te lo consiglio ma in realtà si può fare, devi semplicemente editare a mano /etc/passwd, ripeto è altamente sconsigliato ed estremamente deprecabile, ma in Linux per fortuna è l'amministratore del sistema che dice al sistema quello che deve fare.............non come da altre parti ![Wink :wink:](images/smiles/icon_wink.gif) _________________ Google, really. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
gutter Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/67030318436dd16c1dd5e.jpg)
Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Mon Oct 04, 2004 6:00 pm Post subject: |
|
|
Io sconsiglierei una cosa del genere dal momento che certi comadi potrebbero dare problemi (ad esempio quelli che accedono e modificano /etc/passwd) come ad esempio chown (anche se è possibile superare tale problema), mi spiego meglio:
Code: | $ chmod pippo.pluto nomeFile |
come dovrebbe essere interpretato
La soluzione sarebbe usare i ":" (due punti) ma come ripeto non sceglierei la soluzione di editare a mano /etc/passwd per superare delle protezioni che se ci sono un motivo ci sarà ![Wink :wink:](images/smiles/icon_wink.gif) _________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
n3mo l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/10337836184209d4f03bfcf.png)
Joined: 28 Mar 2004 Posts: 657 Location: In a Cruel World
|
Posted: Mon Oct 04, 2004 6:04 pm Post subject: |
|
|
gutter wrote: | Io sconsiglierei una cosa del genere dal momento che certi comadi potrebbero dare problemi |
Lo ribadisco è altemente sconsigliato andare ad editare a mano i file /etc/passwd /etc/group ecc. ecc.
Ma tra pericoloso e non si può fare ce ne corre parecchio ![Wink :wink:](images/smiles/icon_wink.gif) _________________ Google, really. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|