Ubuntu13.04 log on to the Windows Domain

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.