LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   SAMBA is configured but I can see the shared the directories (https://www.linuxquestions.org/questions/linux-general-1/samba-is-configured-but-i-can-see-the-shared-the-directories-340996/)

ashley75 07-07-2005 12:52 PM

SAMBA is configured but I can see the shared the directories
 
Below is what I did :

1. modify the smb.conf file as follow:

[global]
workgroup = PUTIEVILLE
server string = My Lil Linux Box
hosts allow = 192.168. 127.
log file = /var/log/samba/%m.log
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

[Downloads]
comment = Downloads
path = /home/windisk/Downloads
browseable = yes
writable = yes
public = yes
read only = no

[homes]
comment = My Home Directory
browseable = yes
writable = yes
public = yes
read only = no

[printers]
path = /var/spool/samba
public = yes
guest ok = yes
printable = yes
browseable = yes
writable = yes
read only = no


2. create smbpasswd file:
$cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd

3. However, this file only copies over Linux users to samba users. It doesn't copy over their passwords, as well. Therefore, use the following command to set each samba user's password:

smbpasswd username


Obviously, replace username with each of your user's usernames. You will then be prompted to enter a password for this user account. I like to set my samba user's passwords the same as their linux user counterparts. However, this isn't necessary.

on this part I am not sure username is the server username or the domain user name???? Please claify.

4. start smb service:
$service smb start

5. when I go to Windows and looking the Linux server so I can map the drive, I can't see the server on the domian.

please help

trickykid 07-08-2005 08:33 PM

Try doing a:

smbpasswd -a <username>

And see if that account can access any of the shares.

Brian1 07-08-2005 08:51 PM

Do you have a firewall up on the linux box? If you have one up issue the command in a root terminal ' iptables --flush '. Then see if shows up.

One thing. I recommend not using spaces in your server string.
Other than that it looks fine.

The way I set one up to make sure all is working is edit the smb.conf file making the workgroup name, server string, and adding encrypt password. Then I use Webmin to add users and then create the passwords for users from Webmin. Once done open ports through the firewall if one is active and restart smb. Give it about 10 minutes and see if it pops up.

Brian1


All times are GMT -5. The time now is 08:27 PM.