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
Printable View
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
What command are you trying to execute?
The most I have had to type for a path was "/sbin".
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
the command to add a user iswithout 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>
:wink: [/code]Code:man useradd
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
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
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 ;)
Path is an environmental variable. typeto 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
Sorry dylunio, clashed with you there! Just goes to show how hard we all try to please :wink:
no need to apologise ;) were all here and try to help, and we all contribute :DQuote:
Originally Posted by bigtomrodney
Thanks a lot, Linux is still a little confusing to me. Thanks,
-->Nikosapi