LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 08-09-2006, 08:11 PM   #1
jpence
LQ Newbie
 
Registered: Jan 2003
Location: Fullerton, CA
Distribution: Fedora Core 5
Posts: 7

Rep: Reputation: 0
Samba on FC5: Some Files and Directories Missing


I just installed FC5, and configured Samba to share some files with my XP computer.

I first tried to share /home/jeff. The share was visible, but when I tried to open it, it said that access was denied. The samba log file said that the directory might not exist. I checked both existence and file permissions, and they are correct.

Then I tried to share / and /tmp. I can see the shares, and can open them. However, some files and folders are mysteriously not displayed. Here are a few that I cannot see:

/bin
/home
Anything that is not a directory in /tmp

On the other hand, /etc and /lib appear with all contents, both directories and files.

I checked to make sure that smb.conf didn't have any veto files configured.

Any other configuration files that I need to check to make sure that all contents are made visible?

Thanks
Jeff
 
Old 08-09-2006, 09:27 PM   #2
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
A query
: Wat is the security mode you have set for samba ?

Permissions could be a possibility. Can you please revert back with your testparmed 'smb.conf' ?
 
Old 08-09-2006, 09:38 PM   #3
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
@ my own setup : With the two below mentioned configuration lines;

Quote:
[test]
path = /
read only = yes
I was able to share it properly without any problems.
Though i was not able to surf into many folders because there were'nt enough rights/permissions available for 'others'.
 
Old 08-10-2006, 11:53 AM   #4
jpence
LQ Newbie
 
Registered: Jan 2003
Location: Fullerton, CA
Distribution: Fedora Core 5
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for your responses. Here's the output of testparm:

[global]
workgroup = NA
server string = Jeff Pence's Linux
username map = /etc/samba/smbusers
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
local master = No
wins server = 159.119.100.11
remote announce = 159.119.255.255
guest ok = Yes
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

[root]
comment = File system root
path = /
valid users = jeff, jpence
read only = No
 
Old 08-10-2006, 12:02 PM   #5
jpence
LQ Newbie
 
Registered: Jan 2003
Location: Fullerton, CA
Distribution: Fedora Core 5
Posts: 7

Original Poster
Rep: Reputation: 0
One other mystery. I created a new directory, /jptest. The permissions on this are exactly the same as /home:

drwxr-xr-x 3 root root 4096 Aug 9 18:16 /home
drwxr-xr-x 2 root root 4096 Aug 10 09:55 /jptest

When I open the share from XP, I can see /jptest and its contents, but not /home.
 
Old 08-10-2006, 08:07 PM   #6
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Ok. Try out this way & revert if it works or not ?

Type the below mentiond in any window & then press enter
\\<your-samba-box-ip>or<your-samba-box-netbios-name>\root\home

& the same time... do check what does your samba logs say.
If you dont get success, post the portion of your samba logs here.
 
Old 09-27-2006, 12:10 AM   #7
jamiebriant
LQ Newbie
 
Registered: Sep 2006
Posts: 3

Rep: Reputation: 0
SELinux

SE Linux is screwing with you. By default, SELinux is preventing the smb daemon from accessing those files. Google for SELinux and Samba - can't post links yet.

Jamie
 
  


Reply

Tags
fedora 5, samba


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
Samba trouble - directories, but no files adityamalik Linux - Networking 2 09-27-2006 12:12 AM
Samba missing files / and directory's estaban Linux - Software 1 06-14-2006 03:38 PM
missing lib files in samba? mcgoon Linux - Newbie 1 11-11-2005 09:23 AM
file permissions not being remembered for SAMBA printer files/directories Avatar Linux - General 0 08-30-2005 01:44 PM
Why can't I see the files in the directories on my Samba-Shares? Asuka Tabi Linux - Software 1 06-21-2001 01:10 PM


All times are GMT -5. The time now is 03:16 AM.

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