Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've recently reinstalled linux to fedora core 4. Using default settings, I should be about to mount my home directory on windows...but I get this:
Code:
sohmc@bart:~$ smbclient //127.0.0.1/sohmc
added interface ip=192.168.1.201 bcast=192.168.1.255 nmask=255.255.255.0
Client started (version 3.0.14a-2).
Connecting to 127.0.0.1 at port 445
Password:
Doing spnego session setup (blob length=58)
got OID=1 3 6 1 4 1 311 2 2 10
got principal=NONE
Got challenge flags:
Got NTLMSSP neg_flags=0x608a0215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60080215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60080215
Domain=[BART] OS=[Unix] Server=[Samba 3.0.14a-2]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
my smb.conf:
Code:
[global]
workgroup = MYGROUP2
server string = Samba Server
log level = 3
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = /etc/printcap
dns proxy = No
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
cups options = raw
[homes]
comment = Home Directories
read only = No
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[tmp]
comment = Temporary file space
path = /tmp
read only = No
guest ok = Yes
When I mount tmp, I can see the directories, but I cannot see individual files, even the ones I created and own and permissions to.
I've searched on google and on LQ and cannot seem to find a solution that fixes this problem. I don't think it's a permissions issue because Iv'e tried making my home directory and files in tmp world readable to no avail.
I've also copied this smb.conf from a working linux computer and still does not work.
What I'm confused with is your command 'smbclient //127.0.0.1/sohmc'
Are you connecting using two machines on a network or the same machine? Why would you need to use smbclient on a linux host to connect to itself? 127.0.0.1 is a loopback address
This thread solves the problem. SELinux blocks accessing home directories...
Quote:
Originally posted by HomeBrewer Well, I figured this out. Fedora Core 4 blocks home shares in Samba by default through SELinux policies...
For the benefit of Google, here's how to fix it:
Solution 1 (temporary; won't survive a re-boot):
Issue the command:
[root]# setsebool samba_enable_home_dirs=1
Solution 2 (might survive a reboot; I didn't actually try this one):
[root]# setsebool -P samba_enable_home_dirs=1
Solution 3 (survives a reboot):
This is the solution I ultimately settled on. Go to the /etc/selinux/targeted directory. Create a text file called booleans.local, and put the "samba_enable_home_dirs=1" line in it (without the quotes, of course).
Solution 4 (surives a reboot, but removes all SELinux protection):
Edit /etc/selinux/config. Change the line SELINUX=enforcing to SELINUX=permissive or SELINUX=disabled.
I have a similar problem. I got a FC4 Server running samba. I solved the problem with the home directory like written here. But I also got a HDD in the server which is NTFS formatted. I mount it (with the ntfs kernel module) and share it with samba as public. When I try to connect, I get the same error as the SELinux-Homedirectory error (which I got fixed, thanks).
Quote:
Domain=[JESSICA] OS=[Unix] Server=[Samba 3.0.14a-2]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
Isn´t it possible to share an NTFS folder with samba? (The NTFS HDD did belong to a Win 2003 Server with Domain etc. But the HDD with the Win Sys crashed and now only the data hdd left)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.