LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   the problem of Samba 3.0.14a on FC4 (https://www.linuxquestions.org/questions/linux-networking-3/the-problem-of-samba-3-0-14a-on-fc4-338938/)

celestite 06-30-2005 11:10 PM

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
:confused:

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

fotoguy 07-01-2005 09:04 PM

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

celestite 07-13-2005 12:42 AM

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:)

celestite 07-13-2005 01:20 AM

Now I confirm that the samba problem I met before resulted from SELinux!!!!

If I activate SELinux, samba problems return.

fotoguy 07-13-2005 01:30 AM

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.

JohnLocke 08-16-2005 01:52 AM

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


All times are GMT -5. The time now is 04:35 PM.