LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Join linux to Windows domain (http://www.linuxquestions.org/questions/slackware-14/join-linux-to-windows-domain-371794/)

CalibraTeam 10-11-2005 02:05 AM

Join linux to Windows domain
 
How to join Slackware to Windows domain? I configured my Ethernet card and now I can use intranet and ping another computers in local network. But I need to connect my linux to Windows domain because I have to get access to the shared network directories and internet. Thank you.

Gort32 10-11-2005 07:52 AM

Samba is going to be your new best friend. It isn't the easiest service to set up but it is pretty cool when it works.

You are going to have to modify your /etc/samba/smb.conf file. Notable requirements:

workgroup = YOUR_WINDOWS_DOMAIN
encrypted passwords = yes
password server = YOUR_DOMAIN_CONTROLLER
security = domain
unix password sync = yes
netbios name = YOUR_COMPUTER_NAME

For the rest of the file, just make what changes look good (logging, etc). Make sure that your rc.samba script is executable so that samba will start on boot # chmod 755 /etc/rc.d/rc.samba and run that script.
On your Windows domain, add a new computer account with the same name that you set the netbios name. Finally, back on your Linux box, run # net join YOUR_WINDOWS_DOMAIN If all goes well it will respond that you have joined the domain. You can then use
mount -t smbfs -o username=YOUR_WINDOWS_USERNAME,workgroup=YOUR_WINDOWS_DOMAIN //SERVER/SHARE /mnt/MOUNTPOINT
to mount a remote share.

lukameen 10-11-2005 12:22 PM

If you just want access to your shares on the windows network from slackware you don't need to run the samba service or configure samba. There's a nifty little program called smb4k that works great for accessing windows shares. If you want your windows network to access shares from slackware then you will need samba.

nukey 10-11-2005 12:28 PM

mount -t smbfs -o username=your_username,password=your_password //192.168.x.x/your_share /mnt/your_mountpoint

raska 10-11-2005 12:50 PM

Quote:

Originally posted by nukey
mount -t smbfs -o username=your_username,password=your_password //192.168.x.x/your_share /mnt/your_mountpoint
sometimes this doesn't work for me, because of differences in the kerberos protocol... at least that's what I could understand... stupid Active Directory DNS server

In KDE (3.4.2) I type in the address bar smb://<host_or_ip/
it asks me for the user in the domain and the password and then I can see the shared resources (even those 'hidden' which finish with a $ symbol) and files according to my privileges. I have my computer in the same domain as any other in the network, but... it has slackware muaaajajajajajajaja :D

nukey 10-11-2005 01:11 PM

Sometimes not you say, tried by IP ?

When you try to access the machine by hostname it will use kerberos, if you try by IP the system will lower down to NTLM.

I have 1 slackware box and 2 windows boxes over here. Every evening the slackware box mounts a share on those windows boxes and makes a backup of the files in these shares, never fails :D

raska 10-11-2005 01:19 PM

Quote:

Originally posted by nukey
Sometimes not you say, tried by IP ?
I just tried it to calm down my overwhelming curiosity and it... didn't work

Drunkalot 10-18-2005 10:03 AM

My distro doen't have the net program, what package I need to install???

crnchyfrog 10-20-2005 02:35 AM

Quote:

Originally posted by raska
sometimes this doesn't work for me, because of differences in the kerberos protocol... at least that's what I could understand... stupid Active Directory DNS server

In KDE (3.4.2) I type in the address bar smb://<host_or_ip/
it asks me for the user in the domain and the password and then I can see the shared resources (even those 'hidden' which finish with a $ symbol) and files according to my privileges. I have my computer in the same domain as any other in the network, but... it has slackware muaaajajajajajajaja :D

That worked amazingly well. I was running Knoppix and wanted to access shared files on a windows domain. I typed that into Konqueror and I was able to read and write to the windows share.

I tried running lisa and linNeighborhood and I was able to see the computers, but when i mounted the drives, I couldn't see all of the folders...

The only problem is that it can't find some of the folders and filenames that are written in chinese, but i think that's a browser encoding problem.


All times are GMT -5. The time now is 05:13 AM.