![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Ubuntu Ubuntu is a complete desktop Linux operating system, freely available with both community and professional support. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| features of a new SHELL | nsharath | Shell Programming and Scripting | 15 | 02-06-2009 04:54 AM |
| Ubuntu 8.10 Server Edition delivers significant new features to innovative user base | iBot | Security Advisories (RSS) | 0 | 10-27-2008 12:20 AM |
| Shell features ??? | skyineyes | UNIX for Dummies Questions & Answers | 1 | 05-28-2008 07:00 AM |
| setting password for user using useradd? | zedex | UNIX for Advanced & Expert Users | 1 | 10-21-2007 12:21 PM |
| Who can help me how to add user without 'useradd' command | foong | UNIX for Dummies Questions & Answers | 3 | 08-07-2003 02:02 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
useradd - shell missing features after adding user
Hi, I need to create a user from a bash script so i have to use useradd. The problem is that when i create a user with: Code:
useradd -d /home/sample -m sample after i login with that user I have no history in bash, path do not appears, i can't use arrows and so on. When I use adduser everything is fine but what I'm missing here ? What parameters do i have to use with useradd so when I login with that user bash has full features. Thank you. |
|
||||
|
useradd does not give the user any more parameters than those you create, so the way you're using it, it won't asign bash as the default shell.
I'd use this: useradd -d /home/user -s /bin/bash -G group -m user Remove the -g in case you don't want him to be in a specific group. I'd try adding a -p password with a password that might be maybe the same user name Good luck |
|
||||
|
if you use the -G group that will be a secondary group. If you want them to be in default groups, then you can leave that off. Otherwise, use -G for groups you don't want to include their primary GID. -g is used for their primary GID/group.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|