LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-07-2005, 01:52 PM   #1
ashley75
Member
 
Registered: Aug 2003
Posts: 231

Rep: Reputation: 30
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
 
Old 07-08-2005, 09:33 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Try doing a:

smbpasswd -a <username>

And see if that account can access any of the shares.
 
Old 07-08-2005, 09:51 PM   #3
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
no access to shared directories with samba Meriadoc Linux - Networking 1 03-13-2005 07:42 AM
Windows XP/NTFS + Virtual PC/Mandrake + Samba = Shared Directories? IamI Mandriva 1 12-18-2004 07:06 PM
Can't acess directories shared by Samba in windows XP vador Linux - Networking 4 10-29-2004 05:06 PM
Samba 3: Can't write to shared directories from Windows robintw Linux - Networking 10 07-31-2004 10:13 PM
"Access Denied" to printer and directories shared via Samba Aarstar Linux - Networking 1 03-05-2002 07:38 PM


All times are GMT -5. The time now is 11:53 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration