Results 1 to 10 of 10
Where is the path file located in mandrake 10.1?
I hate having to type the path to run a command, especially if each path is a bloody paragraph long!
-->Nikosapi...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-04-2005 #1Linux Newbie
- Join Date
- Jan 2005
- Location
- Quebec, Canada
- Posts
- 100
The Ultimate n00b question!
Where is the path file located in mandrake 10.1?
I hate having to type the path to run a command, especially if each path is a bloody paragraph long!
-->Nikosapi
- 07-04-2005 #2
What command are you trying to execute?
The most I have had to type for a path was "/sbin".How to know if you are a geek.
when you respond to "get a life!" with "what's the URL?"
- Birger
New users read The FAQ
- 07-04-2005 #3Linux Newbie
- Join Date
- Jan 2005
- Location
- Quebec, Canada
- Posts
- 100
well if I want to add a user to my server this is what I have to type:
/usr/local/apache2/bin/htpasswd /usr/some/path/passwords/somefile someuser
it'll save a little bit of typing...
-->Nikosapi
- 07-04-2005 #4
the command to add a user is
without the <> and anyother groups that you want them to have seperated by a ',' then to set there password the command isCode:useradd -m -G users,wheel,audio -s /bin/bash <new_user>
also check the manpage for useraddCode:password <new_user>
Code:man useradd
[/code]
well that adds the user to the whole bax and that is what i do then i dont put them in wheel so they cont go root even if they had the root passwd
if you are just adding them to apache you can just edit the config to add them~Mike ~~~ Forum Rules
Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
http://loft306.org
- 07-04-2005 #5Linux Newbie
- Join Date
- Jan 2005
- Location
- Quebec, Canada
- Posts
- 100
Could somebody just answer my question? Thank you for giving me another way to add users but I still want to know where my path file is located. I tried find and the locate command and still can't find it, help...
-->Nikosapi
- 07-04-2005 #6
You can set your $PATH with e.g.
for example, and then put that in a file in your home directory named .bashrc (put in ~/.bashrc)Code:PATH=$PATH:/sbin
The universal file is /etc/bash/bashrc if you want to change the PATH for all users
- 07-04-2005 #7Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
Path is an environmental variable. type
to see it. You will notice that it is seperated with colons. It is initially set in /etc/profile on login but if you want to modify it temporarily or to experiment type (for example)Code:echo $PATH
This will set PATH to what it was and append the value /sbin.Code:PATH=$PATH:/sbin
- 07-04-2005 #8Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
Sorry dylunio, clashed with you there! Just goes to show how hard we all try to please
- 07-04-2005 #9no need to apologise
Originally Posted by bigtomrodney
were all here and try to help, and we all contribute
- 07-04-2005 #10Linux Newbie
- Join Date
- Jan 2005
- Location
- Quebec, Canada
- Posts
- 100
Thanks a lot, Linux is still a little confusing to me. Thanks,
-->Nikosapi


Reply With Quote
