[CentOS] Odd failure of smbd to start from init.d - CentOS 5.4

Whit Blauvelt whit at transpect.com
Fri May 21 19:01:48 UTC 2010


On Fri, May 21, 2010 at 02:36:30PM -0400, Whit Blauvelt wrote:

> Here's the path seen within the init.d/smb script (from an inserted echo $PATH > file):
> 
> /sbin:/usr/sbin:/bin:/usr/bin

And if I set that path in a console session, smbd still works when called
directly:

# export PATH=/sbin:/usr/sbin:/bin:/usr/bin

# ps aux | grep smb
root      6449  0.0  0.0  61148   732 pts/1    S+   14:58   0:00 grep smb

# smbd -D

# ps aux | grep smb
root      6452  0.0  0.0 135580  2592 ?        Ss   14:58   0:00 smbd -D
root      6453  0.0  0.0 135580  1404 ?        S    14:58   0:00 smbd -D
rec_user  6454  0.0  0.0 135888  2708 ?        S    14:58   0:00 smbd -D
root      6456  0.0  0.0  61148   732 pts/1    S+   14:58   0:00 grep smb

So there's nothing about the longer path normally available in a console
that's a dependency here.

Whit



More information about the CentOS mailing list