Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello All,
I have configured samba server on RHEL 3 and it is working fine.
Now I want to share a directory that will be automaticaly mounted when login on to a windows XP/2000 machine.
My configuration part of smb.config is as below
[ITM DATA]
comment = File Server - ITM
path = /ITM DATA
writeable = yes
guest ok = yes
[cdrom]
path = /mnt/cdrom
guest ok = yes
[itmbhl]
comment = Database
path = /itmbhl
valid users = raj
writeable = yes
create mask = 0765
printable = no
public = no
Ok, just change the server-string to be the name that you want your ClarkConnect box to have, and the workgroup to be the name of your domain. Save it as /etc/samba/smb.conf
Next we need to do some housekeeping and create some groups, directories and machine trust accounts. Again, as root do the following:
These steps create the necessary directories. The permissions and owners are quite important, as giving the wrong people access to, say for instance, the netlogon directory then they could make every windows machine that logs on to the domain run any particular program/command... ie it is quite a big backdoor which you want firmly locked.
Ok, now check to see if everything is fine, and restart samba with the following commands:
this will (after hitting enter) check smb.conf to make sure there is nothing seriously wrong with it, and it will spit out the specifics of what you have configured. The second command stops and restarts samba. If you don’t have samba running then you can just use start instead of restart. To make samba start up on boot you can use the web based configuration of CC.
Machine trust accounts are what the windows machines log in to the domain with. There is/was a way of doing this automagically the first time a machine connects, but i haven’t worked out how to do it in Samba 3 yet. There doesn’t seem much point as I’m only connecting 3 computers to my domain. Here is how you creat a machine account for a computer with the network id of “flower”
Yes, the ‘$’ sign is important. Don’t leave it out of the first two commands or it won’t work. The second command there creates a locked password for the machine. The third command sets the samba password for the machine, this time don’t include the ‘$’ sign.
Next you need to create the login for the profile you want to use on your new domain. In this case the login name is fred.
Now type in the new password for fred as prompted (twice) (this one isn’t the one you’ll log in with from your windows machine, but you might as well make it the same)
This password is the windows domain password for the user fred in the domain HOME-DOMAIN
In order to allow machines to join the domain you need to create a samba password for the root account. You do this by typing in the command below then typing in a password.
Ok, just change the server-string to be the name that you want your ClarkConnect box to have, and the workgroup to be the name of your domain. Save it as /etc/samba/smb.conf
Next we need to do some housekeeping and create some groups, directories and machine trust accounts. Again, as root do the following:
These steps create the necessary directories. The permissions and owners are quite important, as giving the wrong people access to, say for instance, the netlogon directory then they could make every windows machine that logs on to the domain run any particular program/command... ie it is quite a big backdoor which you want firmly locked.
Ok, now check to see if everything is fine, and restart samba with the following commands:
this will (after hitting enter) check smb.conf to make sure there is nothing seriously wrong with it, and it will spit out the specifics of what you have configured. The second command stops and restarts samba. If you don’t have samba running then you can just use start instead of restart. To make samba start up on boot you can use the web based configuration of CC.
Machine trust accounts are what the windows machines log in to the domain with. There is/was a way of doing this automagically the first time a machine connects, but i haven’t worked out how to do it in Samba 3 yet. There doesn’t seem much point as I’m only connecting 3 computers to my domain. Here is how you creat a machine account for a computer with the network id of “flower”
Yes, the ‘$’ sign is important. Don’t leave it out of the first two commands or it won’t work. The second command there creates a locked password for the machine. The third command sets the samba password for the machine, this time don’t include the ‘$’ sign.
Next you need to create the login for the profile you want to use on your new domain. In this case the login name is fred.
Now type in the new password for fred as prompted (twice) (this one isn’t the one you’ll log in with from your windows machine, but you might as well make it the same)
This password is the windows domain password for the user fred in the domain HOME-DOMAIN
In order to allow machines to join the domain you need to create a samba password for the root account. You do this by typing in the command below then typing in a password.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.