LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   wired things happening (http://www.linuxquestions.org/questions/linux-software-2/wired-things-happening-246754/)

Paxmaster 10-24-2004 12:26 PM

wired things happening
 
hello there i am having strange problem, i want to add a users and delete a user.
when i type useradd -c Mary Smith" Mary the output error i get command not found useradd
same think same thing i get with userdel command not found.

before i was able to do this

UsualTuxpect 10-24-2004 01:58 PM

Both the commands normally are in the /usr/sbin directory

to check if the command's exist, do this --->#locate useradd
and if they do exist, make sure you edit your .bashrc file to include the path to /usr/sbin

Paxmaster 10-24-2004 02:47 PM

can you explain me more clearly
i have edit my bash_profile and i have add this
PATH=$PATH:/usr/sbin ; export PATH
this doesn't work
my .bash_profile look like this

.bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc
USERNAME="root"

export USERNAME BASH_ENV PATH

UsualTuxpect 10-24-2004 03:49 PM

if u add[ PATH=$PATH:/usr/sbin ; export PATH ] it in the .bashrc file, the new settings will come into effect when you open a new terminal ...

Paxmaster 10-24-2004 04:38 PM

i have add the line, but when i open a new bash prompt it gives error saying
su
Password:
bash: /root/.bashrc: line 17: syntax error: unexpected end of file

UsualTuxpect 10-24-2004 05:46 PM

can u post ur .bashrc file .....


All times are GMT -5. The time now is 12:35 PM.