Advertisement

07.24.2003 at 03:15PM PDT, ID: 20689710
[x]
Attachment Details

useradd command in Unix (solaris)

Asked by tooki in Operating Systems Miscellaneous, Sun JDS

Tags: useradd, solaris, unix

I have problem to set path when creating a new user.

I need to create a user "newuser" and set path to /opt/sd/../sdshell

But as root, when I try to create the new user with above path, I get error:

# useradd -d /usr2/newuser -g adm -s /opt/sd/ace/prog/sdshell test2
UX: useradd: ERROR: /opt/sd/ace/prog/sdshell is not a valid shell.  Choose another.
(The command # useradd -d /usr2/newuser -g adm -s /bin/sh
works without error)

The above shell (/opt/sd/ace/prog/sdshell) is valid, because there are existing
users whose path point to that shell:


# cat /etc/passwd
root:x:0:1:Super-User:/:/bin/ksh
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:
adm:x:4:4:Admin:/var/adm:
.
.
.
tom:x:104:1:Tom Tom:/usr2/tom:/opt/sd/prog/sdshell
.
.

Above user (tom) can login without any problem or errors.

And here is the shell location:
# ls -l /opt/sd/prog/sdshell
---s--x--x   1 root     other      95508 Oct 29  1996 /opt/sd/ace/prog/sdshell


How can I fix this?

Thanks.
-tooki
Start Free Trial
 
Loading Advertisement...
 
[+][-]07.24.2003 at 04:45PM PDT, ID: 9000009

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2003 at 06:38PM PDT, ID: 9000545

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.24.2003 at 06:54PM PDT, ID: 9000600

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2003 at 07:35PM PDT, ID: 9000727

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.25.2003 at 06:08AM PDT, ID: 9003898

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.25.2003 at 06:24AM PDT, ID: 9004021

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.25.2003 at 09:51AM PDT, ID: 9006024

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.25.2003 at 09:15PM PDT, ID: 9009526

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.19.2003 at 11:24PM PDT, ID: 9581379

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.28.2003 at 04:51PM PST, ID: 9638246

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Operating Systems Miscellaneous, Sun JDS
Tags: useradd, solaris, unix
Sign Up Now!
Solution Provided By: YensidMod
Participating Experts: 5
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32