Click to See Complete Forum and Search --> : samba doing odd thing


theclave
02-01-2001, 07:26 PM
I've got samba working very nicely in root, but as soon as I switch to a user account, I get
bash: samba: command not found
same happens when I try it in su - samba only seems to work in root.
What can I do to remedy this?

whiterabbit
02-01-2001, 08:48 PM
Ok,

I'm not very bright but alot of time in netadmin of some systems I'd rather not mention here makes me wonder what your enviroment variables and permissions are under the users you su'd to. This maybe to simple of a solution for this *BUT* everything starts somewhere.

Cheers!

------------------
I'm looking for the truth here, or a reasonably good facsimile thereof.

Craig McPherson
02-01-2001, 09:45 PM
It's your PATH setting for the user. The Samba binary is in /usr/sbin most likely, and your user doesn't have /usr/sbin in his path. You could add /usr/sbin to his path, or access the command by specifying the full path, like /usr/sbin/samba

However, what is the "samba" command? If that's the binary for the Samba server, you shouldn't be running it as a user anyway: in general, users can't run servers that need to bind to ports under 1024.

Ryeker
02-02-2001, 12:13 PM
Are you trying to run the Samba server or client? The Samba server is smbd and nmbd (you need both), and like Craig said, you'll need to be root to run them.

On my Samba server, there is no 'samba' executable.