Networking Forums

Networking Forums > Computer Networking > Linux Networking > Permision Denied when Accessing smb.conf

Reply
Thread Tools Display Modes

Permision Denied when Accessing smb.conf

 
 
scott
Guest
Posts: n/a

 
      08-27-2004, 08:42 AM
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.

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.

Please help, thanks.

Scott
 
Reply With Quote
 
 
 
 
Davide Bianchi
Guest
Posts: n/a

 
      08-27-2004, 08:43 AM
On 2004-08-27, scott <(E-Mail Removed)> wrote:
> 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.


ls -l /etc/smb.conf and check the permissions, change them using
chmod.

Davide

--
President Reagan has noted that there are too many economic pundits and
forecasters and has decided on an excess prophets tax.
 
Reply With Quote
 
Stefan Viljoen
Guest
Posts: n/a

 
      08-27-2004, 09:31 AM
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=07 75,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
 
Reply With Quote
 
Damien
Guest
Posts: n/a

 
      08-27-2004, 01:55 PM
Stefan Viljoen a écrit :
> Hope this helps!


Hi,
That did help a *lot* . I was looking for something like this Thanks
again.

Now I'll just keep on looking for why I can't start LISa...

Thanks again,
Damien
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access Denied when accessing mapped drives Michigan Windows Networking 7 03-16-2009 01:53 AM
Permission denied accessing Win XP Pro shares? Mark Bratcher Linux Networking 1 05-03-2006 10:49 AM
Access Denied when accessing a share D drive DX Windows Networking 2 02-14-2005 08:31 PM
Access Denied accessing Win2K gateway share Fingers@work.net Windows Networking 0 01-19-2004 03:40 AM
Access Denied accessing Win2K gateway share Fingers@work.net Windows Networking 0 01-19-2004 03:40 AM



1 2 3 4 5 6 7 8 9 10 11