LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-08-2005, 01:33 AM   #1
cy88
LQ Newbie
 
Registered: Sep 2002
Location: Toronto, ON
Distribution: Fedora
Posts: 6

Rep: Reputation: 0
Samba problem [newb here]


Hi guys,

I am trying to setup samba on my Redhat FC4 box to share files and printer with my other windows machine. I followed the steps provided by the samba.org and when i try to start the samba by doing "./smb start" in /etc/init.d/, it tells me :
Code:
Starting SMB services: /etc/init.d/functions: line 83: 28731 Aborted                   $nice $*

[FAILED]

Just wondering what's happening here.

Thanks!

cy
 
Old 10-08-2005, 08:12 PM   #2
cy88
LQ Newbie
 
Registered: Sep 2002
Location: Toronto, ON
Distribution: Fedora
Posts: 6

Original Poster
Rep: Reputation: 0
 
Old 10-10-2005, 03:50 AM   #3
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
/etc/rc.d/init.d/smb start <- for FC4

use this command no ./.

see what is the output if still cannot paste ur smb.conf to pastebin and post link here

ps: do not expected ur ques will be answer like paid support , patient is needed

cheers
 
Old 10-10-2005, 04:29 PM   #4
TriMat
LQ Newbie
 
Registered: Oct 2005
Location: Pennsylvania
Distribution: FC4
Posts: 8

Rep: Reputation: 0
same problem

same problem here, except I've got some different numbers following my line 83 error

Code:
[root@localhost samba]# /etc/rc.d/init.d/smb restart
Shutting down SMB services:                                [FAILED]
Shutting down NMB services:                                [  OK  ]
Starting SMB services: /etc/init.d/functions: line 83:  2987 Aborted      $nice $*
                                                           [FAILED]
Starting NMB services:                                     [  OK  ]
[root@localhost samba]# /etc/rc.d/init.d/smb start
Starting SMB services: /etc/init.d/functions: line 83:  3382 Aborted      $nice $*
                                                           [FAILED]
Starting NMB services:
The only edits to my smb.conf file have been done through the GUI where I added a share and myself as a user

I'm trying to follow a guide I found at
http://home.nyc.rr.com/computeraijutsu/samba.html
and I just found this one that I might check out too
http://forums.fedoraforum.org/showthread.php?t=73849

Aside from playing around with Knoppix when my main HD failed a while ago, I'm pretty new to linux (as in I installed it 2 days ago) so please, be kind

thanks
 
Old 10-11-2005, 12:36 AM   #5
dhruvypatel
Member
 
Registered: Oct 2005
Location: Bangalore,India
Distribution: Debian
Posts: 37

Rep: Reputation: 15
try testparm command this may give you hint what is wrong.
 
Old 10-11-2005, 01:41 AM   #6
cy88
LQ Newbie
 
Registered: Sep 2002
Location: Toronto, ON
Distribution: Fedora
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by routers
/etc/rc.d/init.d/smb start <- for FC4

use this command no ./.

see what is the output if still cannot paste ur smb.conf to pastebin and post link here

ps: do not expected ur ques will be answer like paid support , patient is needed

cheers
Hi,

Thanks for your suggestion, sorry about the bumping

Anyhow, i tried doing /etc/rc.d/init.d/smb start without the ./ it wouldn't work. However when i do /etc/rc.d/init.d/./smb start it shows me the same msg as before.

Please advise, thx in advance
 
Old 10-11-2005, 06:20 AM   #7
marigny
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Rep: Reputation: 0
Hi cy88,

have you tried using the webmin interface to setup your samba shares?
 
Old 10-11-2005, 08:28 AM   #8
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Quote:
Originally posted by dhruvypatel
try testparm command this may give you hint what is wrong.
Dhruv... He's unable to start the service.

You cant testparm until your samba service is running.
 
Old 10-11-2005, 08:30 AM   #9
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
To avoid all such heck & headache.. & wait for any other proper reply.

Remove the samba & then re-install samba.
As you are a newbie... Use the GUI tools for tht.

Feedback, even if you find the very same error even after doing tht.
 
Old 10-11-2005, 09:52 AM   #10
NoStop
Member
 
Registered: Feb 2005
Location: Canada
Distribution: Debian Etch - Enlightenment E17
Posts: 116

Rep: Reputation: 15
Doesn't looking at line 83 in smb.conf give you a clue as to the possible problem?

Cheers
 
Old 10-11-2005, 01:15 PM   #11
TriMat
LQ Newbie
 
Registered: Oct 2005
Location: Pennsylvania
Distribution: FC4
Posts: 8

Rep: Reputation: 0
line 83

line 83 in smb.conf is a comment, not used in the file.

line 83 in functions, however, is the start of "a function to start a program"
Code:
daemon() {
so i guess the function's having a problem somewhere else (i've always tried to avoid programming)

Maybe there's something with the pre-installed Samba that came with FC4?

was reading here
http://forums.fedoraforum.org/showth...544#post373544

and tried the "yum remove samba" and "yum install samba" and got the same error
reinstalled the GUI from the disk and tried setting it up anyway

Something else that I probably should have mentioned earlier - I can see the "Mygroup" from samba on windows, but I can't access it (no permission / path not found)
my network adapter is set as a secure device

because nmb is running but smb isn't?

Last edited by TriMat; 10-11-2005 at 01:17 PM.
 
Old 10-11-2005, 02:32 PM   #12
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Re: line 83

Quote:
Originally posted by TriMat
line 83 in smb.conf is a comment, not used in the file.

line 83 in functions, however, is the start of "a function to start a program"
Code:
daemon() {
so i guess the function's having a problem somewhere else (i've always tried to avoid programming)

Maybe there's something with the pre-installed Samba that came with FC4?

was reading here
http://forums.fedoraforum.org/showth...544#post373544

and tried the "yum remove samba" and "yum install samba" and got the same error
reinstalled the GUI from the disk and tried setting it up anyway

Something else that I probably should have mentioned earlier - I can see the "Mygroup" from samba on windows, but I can't access it (no permission / path not found)
my network adapter is set as a secure device

because nmb is running but smb isn't?
In /etc/init.d/function
---------------
daemon() { --> is the 82nd LINE
83rd is the next line after tht...
---------------

Do check again.

83rd line is commented out. --> "#Test syntax." (83rd line)
Check out at your end again.

Feedback.


Donot discuss the other issues until you samba service is not running.
Sharing, access rights are for later discussion.
 
Old 10-11-2005, 02:50 PM   #13
TriMat
LQ Newbie
 
Registered: Oct 2005
Location: Pennsylvania
Distribution: FC4
Posts: 8

Rep: Reputation: 0
Re: Re: line 83

Quote:
Originally posted by amitsharma_26
In /etc/init.d/function
---------------
daemon() { --> is the 82nd LINE
83rd is the next line after tht...
---------------

Do check again.

83rd line is commented out. --> "#Test syntax." (83rd line)
Check out at your end again.

Feedback.
just checked again
--------------
daemon() { --> definitely 83rd line
#Test syntax --> line 84
---------------
 
Old 10-11-2005, 09:36 PM   #14
TriMat
LQ Newbie
 
Registered: Oct 2005
Location: Pennsylvania
Distribution: FC4
Posts: 8

Rep: Reputation: 0
I got it working

from Cadillactux in this archive
Quote:
just type 'smbd' without the quotes and try that. or do a 'whereis smbd' and type the path it gives you (for example, when I do 'whereis smbd' i get "/usr/bin/smbd", so when I type '/usr/bin/smbd' my SMB Daemon starts up by itself. It goes around the /etc/rc.d/smb start command
/usr/sbin/smbd start
THEN
/etc/rc.d/init.d/smb start

Does this work for anyone else?
And does anyone know why?
 
Old 10-12-2005, 04:31 AM   #15
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
u dare to try again see what happen
/etc/rc.d/init.d/smb restart

if fail again try run setup > services > click smb then save then reboot

urs problem i never face it in fc4 of slackware

interesting
 
  


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
The first step to ascending newb status, acknowledging you're a newb :P LordRaven LinuxQuestions.org Member Intro 1 08-24-2004 05:05 PM
newb problem rcflyer23 Linux - General 3 10-14-2003 12:07 PM
Another newb, another problem... Fishbu Slackware 5 03-08-2003 09:56 PM
Configuring Samba 4 a newb =DBA=Ronin Linux - Networking 1 01-16-2003 07:44 AM
MySQL problem - newb omgkthxbye Linux - Newbie 2 11-26-2002 04:42 PM

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

All times are GMT -5. The time now is 03:58 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