RE: Newbie Samba help (solved)
Many Thanks for all the replies ...
Turned out that all I needed to do was an "smbpasswd -a jan" and re-enter my
password.
At first I tried the settings you suggested ... I printed out your email and
my smb.conf and compared them line by line. The differences were very small.
Below is the smb.conf that gets setup via the NetInst routines. The "encrypt
passwords" does not show up in the smb.conf and yet when you go to
http://localhost:901 and click on the Globals button it does show "encrypt
passwords = YES". You suggested that under [homes] both "browseable" and
"writeable" should be YES. I changed the "browseable" to YES, but couldn't
find a "writable" as a choice under either the "Basic" or "Advanced" views.
That change didn't make any difference, so I ploughed on and filled in the
"hosts allow" field as you suggested. This change also didn't work, however
it made the machine "think" longer when I tried to login. Before the
response was instantaneous, this time it took a good 30 or 40 seconds to
refuse access. "socket options" isn't a choice under the "Basic" view, but
is under "Advanced" and mine was set the same as yours, but it doesn't show
in my smb.conf.
It appears that if it is a Samba default value it doesn't show in the
smb.conf file?
Only after doing the "smbpasswd -a jan" in Applications -> Accessories ->
Root Terminal did I get to access the \home\jan folder. I changed everything
back the original smb.conf settings and login from my Win Xp machines.
Interestingly from the Win Xp machine I can see a whole bunch of files and
folders with names that start with a "." that I can't see from the Gnome
desktop.
# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2007/04/25 07:17:31
[global]
workgroup = SFCMC
server string = %h server
obey pam restrictions = Yes
passdb backend = tdbsam
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
wins support = Yes
panic action = /usr/share/samba/panic-action %d
invalid users = root
include = /etc/samba/dhcp.conf
[homes]
comment = Home Directories
valid users = %S
create mask = 0700
directory mask = 0700
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
-----Original Message-----
From: P Kapat [mailto:kap4lin@gmail.com]
Sent: April 25, 2007 5:53 PM
To: debian-user@lists.debian.org
Subject: Re: Newbie Samba help
> You probably need to create the user for Samba too, via smbpasswd.
>
> As I said, please send your /etc/samba/smb.conf if you want more help.
As Dave was suggesting, you need to modify smb.conf. There are a few
GUIs that do that for you (http://us4.samba.org/samba/GUI/). Its
easier to edit the file for small purposes like this, if you know what
you want. Edit you /etc/samba/smb.conf to look like this: (this is
mine; remember to undo the linebreaks that are caused by this mail
text.)
[global]
# change the WORKGROUP to whatever you see from XP Network
Neighborhood.
workgroup = WORKGROUP
server string = %h server
# the following line was added/changed
encrypt passwords = true
obey pam restrictions = Yes
passdb backend = tdbsam
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully*
.
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
panic action = /usr/share/samba/panic-action %d
invalid users = root
# 192.168.a.b is the IP of my XP machine, replace a, b accordingly
hosts allow = localhost, 192.168.a.b
socket options = TCP_NODELAY
load printers = No
[homes]
comment = Home Directories
create mask = 0700
directory mask = 0700
browseable = Yes
writable = Yes
This should work with the defualt "Jan" passwd, otherwise, use
smbpasswd Jan
at the comand line and provide a password (need not be the one you are
using for usual login, but helps to keep it same).
I generally map a network drive to the HOME directory of the samba
server (Debian box).
HTH
--
Regards
PK
--------------------------------------
http://counter.li.org #402424
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.463 / Virus Database: 269.6.0/775 - Release Date: 2007.04.24
5:43 PM
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.463 / Virus Database: 269.6.0/775 - Release Date: 2007.04.24
5:43 PM
Reply to: