- Oct 11, 2000
- 56,336
- 11
- 0
Here's the situation:
I want WinXP Pro to connect to RedHat 7.1 running Samba to a user account on the linux box.
The linux box (and WinXP box) is connected to my router-switch which has a DHCP Server running... and since Im still a newbie in Linux, I don't know how to setup the hostname for RH7.1 without screwing up the whole machine. I tried once using 'netccfg' and it gave me all kind of errors. Besides, the only address listed by 'netcfg' was 127.0.0.1. I tried changing it to something other than 'localhost' and it give me some funky errors. The errors go away when I change it back to 'localhost'.
I can see the Linux Box from WinXP (shows up as "Samba Server (Localhost)"...) Networking Neighborhood in the same workgroup but when I double click on it, it gives me a permissions error along with a "duplicate name exists on the network" error... I cant figure out why... I have an account on both machines with the same username and password. Still no luck
I even added the user using 'smbadduser username:username' command.... errr....
What am I doing wrong here??? Guide me to the path of wisdom :-D
smb.conf follows
only the parts that were changed from the default are posted:
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = GUNDAMS
# server string is the equivalent of the NT Description field
server string = Samba Server
:
:
# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
:
:
[homes]
comment = Home Directories
valid users = %S
create mode = 0664
directory mode = 0775
browseable = no
writable = yes
:
:
anything wrong???
-----------------------mah fix---------------------
I finally figured out how to change the hostname permanently and error free on RH... this in effect, Samba is now finally working properly
For those who are curious, I made changes to a couple of files:
/etc/sysconfig/network -- changed HOSTNAME = <desired hostname>
/etc/hosts -- changed 127.0.0.1 <desired hostname>.<desired domain> <desired hostname>
To get Samba to start automatically, I made 2 links in each of the seven /etc/rc.d/rcX.d (X=0-6) directories
$ ln -s ../init.d/smb S35smb
$ ln -s ../init.d/smb K35smb
I also made changes to the /etc/samba/smb.conf
See above for relevant changes
rebooting the system... I can now access the user accnt on the linux box.
hope this saves a lot of headache for others in the future. thanks for all your help!
I want WinXP Pro to connect to RedHat 7.1 running Samba to a user account on the linux box.
The linux box (and WinXP box) is connected to my router-switch which has a DHCP Server running... and since Im still a newbie in Linux, I don't know how to setup the hostname for RH7.1 without screwing up the whole machine. I tried once using 'netccfg' and it gave me all kind of errors. Besides, the only address listed by 'netcfg' was 127.0.0.1. I tried changing it to something other than 'localhost' and it give me some funky errors. The errors go away when I change it back to 'localhost'.
I can see the Linux Box from WinXP (shows up as "Samba Server (Localhost)"...) Networking Neighborhood in the same workgroup but when I double click on it, it gives me a permissions error along with a "duplicate name exists on the network" error... I cant figure out why... I have an account on both machines with the same username and password. Still no luck
I even added the user using 'smbadduser username:username' command.... errr....
What am I doing wrong here??? Guide me to the path of wisdom :-D
smb.conf follows
only the parts that were changed from the default are posted:
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = GUNDAMS
# server string is the equivalent of the NT Description field
server string = Samba Server
:
:
# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
:
:
[homes]
comment = Home Directories
valid users = %S
create mode = 0664
directory mode = 0775
browseable = no
writable = yes
:
:
anything wrong???
-----------------------mah fix---------------------
I finally figured out how to change the hostname permanently and error free on RH... this in effect, Samba is now finally working properly
For those who are curious, I made changes to a couple of files:
/etc/sysconfig/network -- changed HOSTNAME = <desired hostname>
/etc/hosts -- changed 127.0.0.1 <desired hostname>.<desired domain> <desired hostname>
To get Samba to start automatically, I made 2 links in each of the seven /etc/rc.d/rcX.d (X=0-6) directories
$ ln -s ../init.d/smb S35smb
$ ln -s ../init.d/smb K35smb
I also made changes to the /etc/samba/smb.conf
See above for relevant changes
rebooting the system... I can now access the user accnt on the linux box.
hope this saves a lot of headache for others in the future. thanks for all your help!