Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Forum italiano (Italian) Risorse italiane (documentazione e tools)
  • Search

AS4: Aggiungere utenti

Forum riservato alla documentazione in italiano.

Moderator: ago

Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
Author
Message
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31985
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

AS4: Aggiungere utenti

  • Quote

Post by fedeliallalinea » Mon Oct 18, 2004 10:49 am

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
  • useradd
  • passwd
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: Select all

man 8 useradd
man 1 passwd
Per aggiungere un nuovo utente in Gentoo potete usare il comando si base:

Code: Select all

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: Select all

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

    Code: Select all

    useradd -d (directory name) -m (username)
  3. Dovete anche specificare la shell che usa l'utente quando entra. Potete farlo usando:

    Code: Select all

    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: Select all

    useradd -g users (username)
  5. Se volete aggiungere il vostro utente ad altri gruppi, per esempio al wheel usate:

    Code: Select all

    useradd -G wheel,othergroup1,othergroup2 (username)
  6. Per finire potete anche inserire la data di scadenza per un certo utente

    Code: Select all

    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: Select all

useradd -g users -G wheel -s /bin/bash -m (username)
Dopo questo e' ora di mettere una password all'utente con il comando

Code: Select all

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.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
Post Reply
  • Print view
1 post • Page 1 of 1

Return to “Risorse italiane (documentazione e tools)”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic