Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
AS4: Aggiungere utenti
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools)
View previous topic :: View next topic  
Author Message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30822
Location: here

PostPosted: Mon Oct 18, 2004 10:49 am    Post subject: AS4: Aggiungere utenti Reply with quote

Navigazione: [ back AS3: Il mio utete e' nel gruppo wheel ma il comando 'su' non funziona. Che posso fare? ] [ next AS5: Devo settare CLOCK con local o UTC? ] [ Amministrazione Sistema ] [ Indice ]


Aggiungere utenti


I comandi rilevanti per questa faq sono

Una alternativa al comando useradd e' superadduser. emerge superadduser lo installera'. Questo e' un comando interattivo che visualizza le informazioni necessarie.

Potete / dovreste anche confrontare
Code:
man 8 useradd
man 1 passwd


Per aggiungere un nuovo utente in Gentoo potete usare il comando si base:
Code:
useradd (username)



Opzioni da usare con useradd

  1. Per creare una home directory del nuovo utente usate
    (Di default il nome utente e' legato alla cartella standar della home, di solito /home)
    Code:
    useradd -m (username)

  2. Per specificare un'altra cartella per il vostro utente e per crearla usate:
    Code:
    useradd -d (directory name) -m (username)

  3. Dovete anche specificare la shell che usa l'utente quando entra. Potete farlo usando:
    Code:
    useradd -s /bin/bash (username)

  4. Potete anche specificare a che gruppo primario appartiene l'utente. Io preferisco aggiungere ciascun utente al gruppo users mentre altri creno un gruppo per ogni utente. Usando questo comando dovrete assicurarvi che il gruppo esista prima della creazione dell'utente. (Questo dovrebbe essere il caso con users).
    Code:
    useradd -g users (username)

  5. Se volete aggiungere il vostro utente ad altri gruppi, per esempio al wheel usate:
    Code:
    useradd -G wheel,othergroup1,othergroup2 (username)

  6. Per finire potete anche inserire la data di scadenza per un certo utente
    Code:
    useradd -e YYYY-MM-DD (username)

Ci sono altre opzioni possibili per il comando useradd se vi interessano leggere man 8 useradd.

Cosi' per un sitema in cui non esiste ancora l'utente potete usare
Code:
useradd -g users -G wheel -s /bin/bash -m (username)


Dopo questo e' ora di mettere una password all'utente con il comando
Code:
passwd (username)


Dopo questi comandi tutto dovrebbe essere a posto e potete iniziare a lavorare con il vostro nuovo utente. Buona fortuna!



Autore: idoneus (testo originale)
Traduttore: fedeliallalinea
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Risorse italiane (documentazione e tools) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum