newusers - command not found
Hi
Is there any reason why I don't have the newusers command? If i try newusers file.txt it says the command cannot be found, also, there is no man page for newusers is this a feature that doesnt come standard with the Suse 10 distro? and if so where might I be able to get this feature? thanks for your time |
Hi, Jayla.
It is possible that the location of newusers is not in your PATH setting. For example, on my system: Code:
% whereis newusers There may be other reasons as well, of course. Best wishes ... cheers, makyo |
Thanks for the speedy reply :)
yes this is what I get after running whereis Code:
whereis newusers many thanks :D |
Don't get mad if I way off but, are you using the command as root? You have to be root to use newusers.
|
Hi
Yeah I'm running it as root, but it seems that there is no PATH set so I cannot view its man page or run the command any advice on how to set the PATH would be great Thanks for your time J |
Set Path
To set path:
Code:
PATH=$PATH:/path/to/file Code:
PATH=$PATH:/usr/sbin/newusers |
Hi.
If cellarlight's advice works, then you need not read this. I'm using SuSE 9, so it may be different. However, I think that whereis should find newusers regardless of who you are logged as. When I ran that original whereis, I was not root. I'm thinking that newusers is not installed on your system. That might be because you used a very basic install, or perhaps newusers is called something different on newer SuSEs. It's possible that you might not have manpages installed, but the command should still be there. The description of newusers on my system is: Code:
> whatis newusers Code:
man -k users Keep us posted ... cheers, makyo |
Quote:
The PATH environment variable points to directories not specific binaries. A good root PATH might be this: Code:
PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" |
Thanks for the replies everybody :)
Quote:
whatis newusers doesnt return an answer whereis newusers returns "newusers:" I've gone thru man -k etc like I have been advised but have been unable to find anything relevant that may work In short, I need a way of adding users on batch to the system, this will be a crontab style job. I figured that having the usernames, passwords etc in a text file, and then calling an expect script that would log in as root, add them all using "newusers" would be the most appropriate way... Any advice would greatly be appreciated Thank you all for reading this J |
The first thing I would do to find if "newusers) is on the sytem is type "man newusers". No man page probably means no command.
Mine is in /usr/sbin also To find ANY file, I like "find". For example: "find / -name newusers" will search the entire filesystem. If you think the file may have a different name, you can do something like: find / -name *user* If newusers is not in you system, then type it into google to find where to get it. |
Hi.
I searched and found: Code:
'newuser' does not exist on 9.1 Pro. Unless someone has a more definitive answer, you may need to create a script and process the items one-by-one with useradd. The man page will have some details. I think you can easily practice by combining that with userdel. Some distributions are set to disallow remote logins by root, but I haven't checked that on SuSE ... cheers, makyo |
Just tried to find "newusers" with Google and Sourceforge--A few man pages, but no links to getting the program.
Maybe obsolete??? |
You could download the source and/or patches for bash.
http://ftp.gnu.org/gnu/bash/ You can get the RPM's here. http://www.free-soft.org/FSM/english/issue03/bash.html I checked my version of bash and it's up-to-date and has newusers. Maybe, you might have an incomplete version.:eek: |
All times are GMT -5. The time now is 07:56 AM. |