Re: Permision Denied when Accessing smb.conf
From: Stefan Viljoen (rylan_at_-deletethis-intekom.co.za)
Date: 08/27/04
- Next message: ssewer: "poptop - hundreds processes.. :("
- Previous message: Davide Bianchi: "Re: Linux / Windows Internet Connection Sharing"
- In reply to: scott: "Permision Denied when Accessing smb.conf"
- Next in thread: Damien: "Re: Permision Denied when Accessing smb.conf"
- Reply: Damien: "Re: Permision Denied when Accessing smb.conf"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 27 Aug 2004 11:31:33 +0200
scott wrote:
> Hi, I'm a newbie trying to connect my laptop running XP to my desktop
> running Fedora Core 2. I'm trying to check my smb.conf file and am
> denied permission even when I'm logged in as root. It's probably very
> simple, but I can't figure this out.
Hi
Go to /etc/samba and do, as root:
chmod a+rw smb.conf
This should give you write access to the smb.conf file as well as read
access.
Here is a sample smb.conf file that I use to give the XP and 98 machines on
my network access to my Rh9 Linux machine:
[global]
netbios name = stefan
workgroup = GOEDEHOOP10
security = share
log file = /var/log/samba.log
log level = 1
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=16384 SO_SNDBUF=16384
wins support = yes
domain logons = no
logon drive = f:
logon home = \\stefan\%U
os level = 99
preferred master = yes
local master = yes
hosts allow = 196.154.155.10 196.154.155.11 196.154.155.20 196.154.155.30
127.0.0.1
encrypt passwords = yes
browseable = yes
lanman auth = yes
lm announce = yes
[stefanhd]
path = /mnt/win/
guest ok = yes
writeable = yes
create mode = 0666
directory mode = 0777
browseable = yes
public = yes
Where /mnt/win is automounted via /etc/fstab whenever I boot my Linux box.
This gives all users with the IP addresses listed in hosts allow full
read/write access to the partition /mnt/win, which is my Windows partition.
> Also, I can get my laptop to see the Linux machine in network
> neighborhood, but when I double click it, I can not connect and I get
> a message about duplicate names on the network.
What have you got in your smb.conf in the
netbios name =
line? Make sure the string in there is unique, then restart samba and try
again.
Oh yeah - to connect to a Windows machine on my network with Samba, from my
Linux machine I go
smbmount "//yzelledesktop/zellehd" /mnt/yrekenaar -o
username=zelle,password=daw22W1,uid=rylan,dmask=0775,fmask=0775
Where "//zelledesktop/zellehd" is what I got from doing "smbclient -L
zelledesktop" where the "zelledesktop" name is obtained via "findsmb",
/mnt/yrekenaar is the mount point for the connection, and on Zelle's XP
machine, "zelle" is his username (displayed when XP starts up), the
password is what he typs in the XP password line, and the rest is to give
you full write and read access to his files. Note that the user must setup
XP's sharing correctly for this to work - I got the "zelle" user to give my
unrestricted, passwordless read and write access on a share he called
"zellehd". Note that this is not a good idea in general since it exposes
his entire hdd to modification / deletion through the network.
Hope this helps!
-- --- Stefan Viljoen Software Support Technician Polar Design Solutions
- Next message: ssewer: "poptop - hundreds processes.. :("
- Previous message: Davide Bianchi: "Re: Linux / Windows Internet Connection Sharing"
- In reply to: scott: "Permision Denied when Accessing smb.conf"
- Next in thread: Damien: "Re: Permision Denied when Accessing smb.conf"
- Reply: Damien: "Re: Permision Denied when Accessing smb.conf"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|