LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-24-2004, 12:26 PM   #1
Paxmaster
Member
 
Registered: Jun 2004
Location: unknown place in NYC
Distribution: Ubuntu
Posts: 377

Rep: Reputation: 30
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
 
Old 10-24-2004, 01:58 PM   #2
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
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
 
Old 10-24-2004, 02:47 PM   #3
Paxmaster
Member
 
Registered: Jun 2004
Location: unknown place in NYC
Distribution: Ubuntu
Posts: 377

Original Poster
Rep: Reputation: 30
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
 
Old 10-24-2004, 03:49 PM   #4
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
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 ...
 
Old 10-24-2004, 04:38 PM   #5
Paxmaster
Member
 
Registered: Jun 2004
Location: unknown place in NYC
Distribution: Ubuntu
Posts: 377

Original Poster
Rep: Reputation: 30
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
 
Old 10-24-2004, 05:46 PM   #6
UsualTuxpect
Member
 
Registered: Aug 2004
Location: New York
Distribution: --------- Gentoo-2004.2 [2.6.8] Redhat-9 [2.6.6]
Posts: 545

Rep: Reputation: 31
can u post ur .bashrc file .....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wierd Things Happening During Install mattp Slackware 17 11-16-2005 07:31 AM
Wireless Laptop to Wired ethernet via Linux PC (wired/wireless) sambartle Linux - Wireless Networking 0 01-30-2005 04:37 AM
hey wired think is happening, somethoink is overridding my fluxbox/menu Paxmaster Linux - Software 1 12-08-2004 02:33 AM
Wired to Wireless back to Wired The_Nerd Linux - Hardware 5 09-15-2004 09:20 PM
Weird things are happening saiz66 Slackware 8 05-17-2003 12:03 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration