LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 09-01-2006, 05:34 AM   #1
sanu
Member
 
Registered: Jan 2004
Location: bangalore
Posts: 45

Rep: Reputation: 15
samba problem


Hi folks...

I am facing a strange problem while configuring samba server...

I hv connected two systems using a crossover cable... One runs on RH 9, while other on windows XP... The problems i m facinig are:-

1. After configuring samba, i m able to access the RH 9 system from Windows XP, but if i try to access files from home directory i get the following error message:-

/home/< a directory name > (for ex. /home/dummy/) is not accessible, you might not hv permission, bla bla..

2. When i reboot my linux machine, i hv to reconfigure samba to make it work...

Wat might be the reason for this problem.. Plz help me out...

Thanks in advance...
 
Old 09-01-2006, 05:55 AM   #2
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Quote:
Originally Posted by sanu
Hi folks...

/home/< a directory name > (for ex. /home/dummy/) is not accessible, you might not hv permission, bla bla..
/home/<directory-name> is designated to a user only; with its username (by default). So you cannot access any other's user home directory.

& as provided in your example, in case of /home/dummy/ ; dummy have to be the username @ xp box to get full rights of this directory to get accessed.

And what is the mode you are running samba in ?
do you have specified a seperate <meta-share> for your homes to be available for all the users in your smb.conf ?
 
Old 09-01-2006, 05:56 AM   #3
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
The description you made is also a bit strange.
You have configured /etc/samba/smb.conf from scrap or did you use SWAT?
At 1st you said that you could access the Redhat 9 system from XP ?
What excatly do you mean with access?
Was it a folder so a share on the Redhat System?
regarding your home share
is it in the smb.conf like this?
[homes]
comment = Home Directories
browseable = no
writable = yes

What security method do you use within samba?
User or Share?

if it's user that try on XP to connect \\sambas servers ip\username and also apply with specified user account therefor use the user that you created with smbpasswd -a username

regards
 
Old 09-01-2006, 06:04 AM   #4
sanu
Member
 
Registered: Jan 2004
Location: bangalore
Posts: 45

Original Poster
Rep: Reputation: 15
Well... I got it... ?How to share home direstory... The security method i hv used is User, not Share...

But why i hv to reconfigure Samba after rebooting my system? Is ther any way to solve this issue?...
 
Old 09-01-2006, 06:39 AM   #5
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
What do you mean with reconfigure?
Do you mean that you have to start the smb service by hand?
If so....
chkconfig smb --list
it will show you in which Runlevel samba will start
then
chkconfig --level 345 smb on (will archiv that samba starts in RL. 3,4,5)

Last edited by odcheck; 09-01-2006 at 06:42 AM.
 
Old 09-01-2006, 09:16 AM   #6
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Again the same query;;

What do you mean by reconfigure?
 
Old 09-02-2006, 05:17 AM   #7
sanu
Member
 
Registered: Jan 2004
Location: bangalore
Posts: 45

Original Poster
Rep: Reputation: 15
when i reboot my linux machine, i am unable to see the samba share on the workgroup of my Windows XP... Then i hv to start samba again to solve this problem...

And i hv to follow these steps repeatedly, after rebooting my system... So, prob is i dont want to start samba again and again after rebooting my system... I want it permanently...
 
Old 09-02-2006, 05:27 AM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Does the smb daemon start automatically on reboot?
 
Old 09-02-2006, 06:58 AM   #9
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
#chkconfig --level 345 smb on

Run that;
Though it seems that you dont pay attention to the earlier posts; this has been clarified by ODCHEK in the 5th post to this thread.
Checkback.

--
http://amitsharma.linuxbloggers.com/how_to_samba.htm is a nice tutorial on samba implemenation & basics.
--
 
Old 09-02-2006, 09:24 AM   #10
sanu
Member
 
Registered: Jan 2004
Location: bangalore
Posts: 45

Original Poster
Rep: Reputation: 15
Well... After a big research the problem is solved ultimately... So,I wanted to share with all of u... I did the follwing:-

1. To share files of home, i hv set read permission to all the directoies under /home using 'chmod'.

2. '[kkk@...]# chkconfig smb on' has solved the prob of restarting samba...
 
Old 09-04-2006, 01:05 AM   #11
odcheck
Member
 
Registered: Aug 2006
Distribution: Fedora, CentOS, RHEL, Debian
Posts: 978

Rep: Reputation: 31
As we already know... and by the way chkconfig smb on will do exactly the same like I told you before. But if you do a chkconfig smb on or whatever service on then the default values will be used. Just a a hint.

I think we're all glad that you got now what you want.
 
  


Reply



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 - Windows XP Problem (//Samba is not accessible) Covenent Linux - Networking 20 08-11-2011 04:07 PM
Samba sharing problem (user permission problem) beikokutn Linux - Software 4 03-11-2008 05:55 AM
samba 3 problem - samba PDC can not join to the domain ananthak Linux - Networking 1 05-21-2006 10:39 AM
problem with samba Paxmaster Linux - Software 0 10-12-2004 04:03 PM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

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

All times are GMT -5. The time now is 09:55 AM.

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