Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm having a problem with samba. This is the first time I've tried to configure it and it works fine logged in as root.
I just type samba start and it starts up fine.
Then when I login in my user account i type samba start and I get a path error - command not found.
Someone guided me through fixing that with something else so I added the following to my ~.bash_profile file
That seemed to fix the path problem and I could then type samba start.
However I now get the following message when I type samba start in a terminal...
Starting SMB services: smbd: Version 2.0.10-ja-1.1 : Must have effective user id of zero to run.
Starting NMB services: [OK]
Anyone know how to fix this one?
When I login as root it starts up fine.
Is there a permission on a file somewhere that needs to be changed? That's the only reason I can think of as to why it works as root and not as a normal user - though I am completely new to Linux.
use root to controll services. that is what you are doing. open up a terminal, log in as user, su - to root, then run the above command i gave you. then you can logout/exit out of both root and user and be happy.
what you do not want to do is use the root account as your primary account. use root for what it is there for. configuring and changing things to the system. for normal use of programs and files, stick with user. that is what it is there for.
I want to try and get samba to run automatically when I start my system.
Is there any way to do this?
I guess I could add that command to the ~bash profile file in root then login to root.
Then immediately log out once the samba service has started.
I basically want to be able to boot my machine and then use samba.
It would be even better if samba was starting before my machine got to the login prompt.
Is that possible?