LinuxQuestions.org
Review your favorite Linux distribution.
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 01-23-2006, 02:41 PM   #1
casper234
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Rep: Reputation: 0
SAMBA problem with disk partition


I have a Linux server running SAMBA to share data with other Windows hosts. My conf file are:
smb.conf
[global]
workgroup = WORKGROUP
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
username map = /etc/samba/smbusers
security = user

log file = /etc/samba/log/%m.log

[TEST_SB]
comment = For testing only
path = /usr/test
read only = no
valid users = devuser

[PUBLIC_DATA]
comment = Public data
path = /home/sharedata
read only = no
valid users = devuser


smbusers:
root = administrator admin
devuser = devusers share
nobody = guest pcguest smbguest

The problem is:
When I using windows to browse, it displays 2 folder ok. But when I try to access it, error happen:
-With /home/sharedata: Folder does not exist error
-With /usr/test: it browse the content of the folder ok, but just read only

NOTE:
-In Linux machine, both folders can be read and written by any user(777)
-Firewall is disable
-I've add samba user devuser and it's samba password also
-/, /boot, /usr are 3 primary partitions, /home anh /swap are 2 extended ones.

Can any body help me. Thanks in advance.

Last edited by casper234; 01-23-2006 at 02:52 PM.
 
Old 01-23-2006, 05:30 PM   #2
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
does windows ask you to enter a user/password when you browse to the samba server?
 
Old 01-23-2006, 06:26 PM   #3
casper234
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Yes, and after typing the correct username&password, we will see the 2 shared folder, seems very normal.
 
Old 01-23-2006, 06:29 PM   #4
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
do you have a corresponding linux account for your smb account?
you need to create a devuser linux account, then type:
smbpassword -a devuser
reenter the password twice
 
Old 01-24-2006, 12:45 AM   #5
casper234
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Ofcourse yes, I have a Linux account devuser previous. So headache!!!
 
Old 01-25-2006, 03:38 AM   #6
casper234
LQ Newbie
 
Registered: Oct 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Oops, I finally found the way to solve this problem. The reason is SELinux. I just disabled it and everything was ok.
Thanks Finlay for your attendtion.
 
  


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
problem with linux partition on external USB disk poncho4u Linux - Hardware 3 10-01-2005 12:08 PM
disk partition problem whee Linux - Newbie 2 05-28-2005 08:58 PM
Strange Disk Partition Problem Ross Clement Linux - Hardware 5 06-30-2003 07:34 AM
Help: Disk partition problem during install groston Linux - Distributions 1 10-07-2002 08:06 PM
Problem mounting SunOS disk on RedHat - unknown partition table jerrymc Linux - Software 2 12-03-2001 06:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:47 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
Open Source Consulting | Domain Registration