Creazione dell'utente Administrator in Samba: Difference between revisions
Jump to navigation
Jump to search
m New page: {{Stub}} L'utente Administrator ha SID=500 *[http://lists.samba.org/archive/samba/2005-November/114029.html [Samba] what is the SID of the domain administrator?] |
mNo edit summary |
||
| Line 2: | Line 2: | ||
L'utente Administrator ha SID=500 | L'utente Administrator ha SID=500 | ||
Creare l'utenza per l'administrator assegnandola al gruppo root: | |||
sudo adduser administrator | |||
sudo usermod -g root administrator | |||
Creare l'account Samba, impostando il SID standard -50: | |||
sudo pdbedit \ | |||
-U $(sudo net getlocalsid | cut -f 6- --delim=" ")-500 \ | |||
-a \ | |||
-u administrator | |||
Impostare il profilo corretto per profilo ed home: | |||
sudo pdbedit -p "\\\\${DOM}Server\\Profiles\\Administrator" -h "\\\\${DOM}Server\\Administrator" -u Administrator | |||
Controllarlo: | |||
<pre> | |||
sudo pdbedit -Lv administrator | |||
Unix username: administrator | |||
NT username: | |||
Account Flags: [UX ] | |||
User SID: S-1-5-21-3700084591-738200680-917009653-500 | |||
Primary Group SID: S-1-5-21-3700084591-738200680-917009653-513 | |||
Full Name: Administrator ALL | |||
Home Directory: \\allserver\administrator | |||
HomeDir Drive: R: | |||
Logon Script: user.bat | |||
Profile Path: \\allserver\profiles\administrator | |||
Domain: ALLIANCE | |||
Account desc: | |||
Workstations: | |||
Munged dial: | |||
Logon time: 0 | |||
Logoff time: Tue, 19 Jan 2038 04:14:07 CET | |||
Kickoff time: 0 | |||
Password last set: Tue, 11 Dec 2007 15:27:09 CET | |||
Password can change: Tue, 11 Dec 2007 15:27:09 CET | |||
Password must change: Tue, 19 Jan 2038 04:14:07 CET | |||
Last bad password : 0 | |||
Bad password count : 0 | |||
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF | |||
</pre> | |||
Risettare la password unix uguale a quella samba, che serve per poter accedere via cups: | |||
sudo passwd administrator | |||
==Riferimenti== | |||
*[http://lists.samba.org/archive/samba/2005-November/114029.html [Samba] what is the SID of the domain administrator?] | *[http://lists.samba.org/archive/samba/2005-November/114029.html [Samba] what is the SID of the domain administrator?] | ||
Latest revision as of 12:23, 13 November 2009
| Attenzione questo articolo è ancora incompleto. Sentiti libero di contribuire cliccando sul tasto edit. |
L'utente Administrator ha SID=500
Creare l'utenza per l'administrator assegnandola al gruppo root:
sudo adduser administrator
sudo usermod -g root administrator
Creare l'account Samba, impostando il SID standard -50:
sudo pdbedit \
-U $(sudo net getlocalsid | cut -f 6- --delim=" ")-500 \
-a \
-u administrator
Impostare il profilo corretto per profilo ed home:
sudo pdbedit -p "\\\\${DOM}Server\\Profiles\\Administrator" -h "\\\\${DOM}Server\\Administrator" -u Administrator
Controllarlo:
sudo pdbedit -Lv administrator Unix username: administrator NT username: Account Flags: [UX ] User SID: S-1-5-21-3700084591-738200680-917009653-500 Primary Group SID: S-1-5-21-3700084591-738200680-917009653-513 Full Name: Administrator ALL Home Directory: \\allserver\administrator HomeDir Drive: R: Logon Script: user.bat Profile Path: \\allserver\profiles\administrator Domain: ALLIANCE Account desc: Workstations: Munged dial: Logon time: 0 Logoff time: Tue, 19 Jan 2038 04:14:07 CET Kickoff time: 0 Password last set: Tue, 11 Dec 2007 15:27:09 CET Password can change: Tue, 11 Dec 2007 15:27:09 CET Password must change: Tue, 19 Jan 2038 04:14:07 CET Last bad password : 0 Bad password count : 0 Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
Risettare la password unix uguale a quella samba, che serve per poter accedere via cups:
sudo passwd administrator
Riferimenti
- [Samba what is the SID of the domain administrator?]