Samba Problem
CH ENGINEERING CO.
chengin at pd.jaring.my
Thu Oct 31 14:39:12 GMT 2002
Hi! I am still having the following problem and hope someone can lay a helping hand.
"Les Mikesell" <les at attbi.com> wrote in message
news:lTCu9.110572$md1.22452 at sccrnsc03...
>
> "Oswald" <chengin at pd.jaring.my> wrote in message
> news:apeaqc$h5j$1 at news6.jaring.my...
> > Hi! I tried to set up a Samba server for LAN of size 10 Window clients.
> > After I set up the Samba as recommended: -
> >
> > [home]
> > path = \home\chee\tmp
> > guest ok = Yes
>
> This shares a single specific directory and allows
> anyone to connect without authentication as
> the guest user. This might be OK for a public
> shared directory.
>
> > (2) Adding the Samba users by entering
> > useradd -m Peter
> > passwd Peter
> > cat /etc/passwd | /usr/bin/mksmapasswd.sh > /etc/samba/smbpasswd
> > smbpasswd Peter
>
> This implies that you really don't want to connect using
> the guest account.
>
> > I thought my '\' convention was wrong, so I changed the path =
> > \home\chee\tmp to path = /home/chee/tmp. This time, I double click the
> > 'home' folder in the Samba folder, it opened. But it's empty!? I
double
> > confirmed the AutoCAD file is in the Samba server /home/chee/tmp. I am
> > stuck!
>
> You are making the samba connection under the guest account
> which is not likely to have read permission to someone else's
> home directory on the Linux side. You could fix it by changing
> the permissions, but you probably want something like:
>
> [homes]
> comment = Home Directories
> browseable = no
> writable = yes
> valid users = %S
> create mode = 0664
> directory mode = 0775
>
> which is slightly magic in that when you browse the machine
> shares from a windows box you only see your own home
> directory, i.e. the one whose name matches the name you
> use to log into your windows machine.
>
> ----
> Les Mikesell
> lesmikesell at attbi.com
>
>
Hi!
Thank you for your reply and helps. I amended the /etc/samba/smb.conf as
suggested. However, I encounter new problems.
In the Window client, I login as "Peter" and I can see the Linux Ser fine.
However, when I
clicked the Linux Ser, it did not promp me for passward but go right to the
Netbios Name CHEE folder. When I clicked on the CHEE folder, it was an
empty folder. (I would expected to see "Peter" and "Secretary" folder in my
/home. And in /home/Peter I should see /tmp with an AutoCAD file try.dwg in
it.)
However, when I am login as "root" from the window client I can see my root
folder and every
thing in it under the CHEE folder (but I can not see other share Peter and
Secretary) .
I may missed something in my smb.conf. My revised smb.conf file is as
following:-
# Samba config file created using SWAT
# from chee_ch.com (127.0.0.1)
# Date : 2002/10/26
# Global parmeters
[global]
workgroup = CH
netbios name = CHEE
security =SHARE
encrypt passward = Yes
pam passward change = Yes
passward program = /usr/bin/passwd %u
passwd chat = *New*passward* %n\n*
*Retype*new*passwd*%n\n*passwd:*all*
*authentication*token*updated*successfully*
log file = /var/log/samba/%m.log
max log size = 0
socket options = TCP_NODELAY SO_RCVBUF = 8192 SO_SNDBUF =
8192
dus proxy = No
printing = lprng
[printers]
comment = All printer
path = /var/spool/samba
printeble = Yes
brawsable = No
[home]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
My intention is to set up a Samba file server for the window client with
each user login to their own /home (Peter, Secretary etc) directory. I
think the above may be due permission I set to Peter and Secretary. How to
correct it?
Your reply is appreciated. Thank you.
Oswald
p/s I am having problem with my ISP newsgroup server for the past month,
sorry if I double posted this message.
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the samba-docs
mailing list