Log on to the Windows domain in Ubuntu13.04. First install the Likewiseapt-getinstalllikewise-open5 and then log on with the command line test domainjoin-clichn.company.comaccount_name Note: 1.chn.company.com is a domain name, all lowercase 2. account_name is your own account, I am from a windows system
Log on to the Windows domain in Ubuntu 13.04. First install Likewise
Apt-get install likewise-open5
Then log on to the system and run the command line test.
Domainjoin-cli chn.company.com account_name
Note:
1. chn.company.com is a domain name with all lowercase letters
2. account_name is your account. My account is from an account that has been tested on windows and I am a dual system (Windows + Ubuntu)
3. note the hostname, because I have logged on to the windows system first and selected the hostname as sloop. It is strange that I cannot use the names of other computers here. I cannot use the same host name. It must be sloop2.
You can set it using the following command:
Domainjoin-cli setname sloop2
This command modifies the/etc/hostname file.
Then, the command line logon succeeds.
This is far from enough. I also need:
1. Log On With a windows domain account in the Ubuntu logon window
2. The domain account is also in sudoers, and the root permission can be executed.
Now you need to install samba
Apt-get install samba
Create the configuration file/etc/samba/lwiauthd. conf.
There is only one line of content:
Winbind use default domain = yes
Add a line to the/etc/sudoers file. For details, see the last line below.
# Members of the admin group may gain root privileges
% Admin ALL = (ALL) ALL
% Chn \ domain ^ users ALL = (ALL) ALL
Chn is the front part of my domain name. domain ^ users... does not need to be modified, meaning that users in the chn domain have all permissions.
Now restart the system. When logging on, click login and enter the user name in domain \ account format.
Login successful. The current user directory is:
/Home/likewise-open/CHN/account_name
Recommended reading:
Ubuntu 13.04 exterior detail update http://www.linuxidc.com/Linux/2012-11/74840.htm
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2