LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 07-01-2005, 12:10 AM   #1
celestite
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Rep: Reputation: 0
the problem of Samba 3.0.14a on FC4


I have installed samba3.0.14a on Fedora Core 4 and shared two directories.
And from another PC with windows XP can see the two directories. But the problems are:
1)
only one directory can enter.
If I attempted to enter another directory, the error from samba server: "the directory is not accessible, you might not have permission to use this network resource. No network provider accepted the given network path" occured.
2)the one directory which I can entered losts files! That means the file under the share directory can is visible if I telnet to the FC4 computer, but the file is invisible if I use explorer to browse it.
maybe there are too many files in that directory? above 3k files


who can help me?
thanks!


--------------------------------------------------------
my smb.conf:
[global]

workgroup = workgroup
server string = Samba Server
printcap name = /etc/printcap
load printers = yes
log file = /var/log/samba/%m.log
max log size = 50
security = share
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
template shell = /bin/false
winbind use default domain = no

[homes]
comment = Home Directories
browseable = no
writeable = yes

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
printable = yes

[src]
path = /usr/src
writeable = yes
browseable = yes
guest ok = yes

[myself]
path = /myself
writeable = yes
browseable = yes
guest ok = yes

----------------------------------------------------
my lmhosts:

127.0.0.1 localhost
 
Old 07-01-2005, 10:04 PM   #2
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,281

Rep: Reputation: 61
One possibility, it's not getting the password to authenticate try adding this lines to your config file in the Global settings:

smb passwd file = /etc/samba/smbpasswd
passwd chat = *New*password* %n\n *Please*retype*new*password* %n\n *password*successfully*updated*
passwd program = /usr/bin/passwd %u
encrypt passwords = yes
unix password sync = yes

samba uses encrypted passwords, also it's best to use the same password for your samba as your xp users password.

Also did you add a root user to samba? samba needs to have both a unix user and a samba user with passwords otherwise samba wont let you connect to any shares. To add root just do this in the command line:

smbpasswd -a root

Then enter the password, best not to use the same password as the system root password, just better for security. If you have any other users, you will need to add them the same was as well.

Let me know if this helps
 
Old 07-13-2005, 01:42 AM   #3
celestite
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for your reply.
But after I did as you mentioned, problem persisted.

And now it is inexplicable that after I rebuild the kernel, every thing is ok!

faint! I don't know y, can you tell me?
maybe some security module just like SELinux weaken the functions of samba?

now I can use sourceinsight to modify the codes through samba
 
Old 07-13-2005, 02:20 AM   #4
celestite
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Now I confirm that the samba problem I met before resulted from SELinux!!!!

If I activate SELinux, samba problems return.
 
Old 07-13-2005, 02:30 AM   #5
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,281

Rep: Reputation: 61
No unfortunately I haven't had much to do with recompiling kernels, so I couldn't shed any light on what it's doing. Maybe when you activate SElinux it may be removing or adding a module that effects security in the kernel somewhere.
 
Old 08-16-2005, 02:52 AM   #6
JohnLocke
Member
 
Registered: Jun 2004
Location: Denver, Colorado
Distribution: Ubuntu
Posts: 221

Rep: Reputation: 30
I was having this same problem, and it does have to do with SELinux. You don't have to disable it, though. I think a good discussion thread is here: (wish I'd found that thread /before/ I found the solution)

http://www.linuxquestions.org/questi...=samba+SELinux
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FC4 eMachines ndiswrapper problem (don't think it has anything to do with FC4) unknownmosquito Linux - Laptop and Netbook 2 12-04-2005 12:50 PM
samba FC4 Visko Fedora 2 10-23-2005 08:16 AM
FC4 + Samba. Can anyone help? tenraek Fedora 1 10-15-2005 01:56 PM
Trying to mount W2k3 shareusing Samba 3.0.14a-Debian gives Stale NFS file handle lbclinux Debian 1 08-21-2005 08:07 AM
samba 3.0.14a package davidsrsb Slackware 10 05-07-2005 08:27 AM


All times are GMT -5. The time now is 01:46 PM.

Main Menu
Advertisement
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