Results 1 to 9 of 9

Thread: What is the default shell in ubuntu distribution and how to assing it to a new user?

  1. #1
    Join Date
    Apr 2007
    Beans
    891
    Distro
    Ubuntu 10.04 Lucid Lynx

    What is the default shell in ubuntu distribution and how to assing it to a new user?

    Hi
    Thank you for reading my post.

    Does you know what is a good shell to assign to a user when we are creating a user using useradd command? I want the shell to have all capabilities of the default ubuntu shell like using TAB for auto-complete and other things.


    Thanks.
    Ubuntu 10.04
    ATI 3470
    4 GB RAM.

  2. #2
    Join Date
    Apr 2008
    Location
    Australian in Germany
    Beans
    4,010
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: What is the default shell in ubuntu distribution and how to assing it to a new us

    As far as I know, the default shell in Ubuntu is bash.

    I do not believe that you have to assign a shell to a new user. When the new user opens a terminal, he will get the same shell that the first user gets.
    Michael

  3. #3
    Join Date
    May 2005
    Location
    Lyon, France
    Beans
    916
    Distro
    Ubuntu Development Release

    Re: What is the default shell in ubuntu distribution and how to assing it to a new us

    bash is default
    adduser or the GUI add/remove user
    useradd will give sh as default
    James Dupin
    IT contractor
    Project delivery specialist
    http://fr.linkedin.com/in/jamesdupin

  4. #4
    Join Date
    Apr 2008
    Location
    Australian in Germany
    Beans
    4,010
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: What is the default shell in ubuntu distribution and how to assing it to a new us

    Quote Originally Posted by bluefrog View Post
    bash is default
    adduser or the GUI add/remove user
    useradd will give sh as default
    not bash? any idea why not?
    Michael

  5. #5
    Join Date
    May 2005
    Location
    Lyon, France
    Beans
    916
    Distro
    Ubuntu Development Release

    Re: What is the default shell in ubuntu distribution and how to assing it to a new us

    cause you are not supposed to use useradd. if you do you are supposed to know what you do. why is the sky blue?

    adduser is what you want to use.
    James Dupin
    IT contractor
    Project delivery specialist
    http://fr.linkedin.com/in/jamesdupin

  6. #6
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,292
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: What is the default shell in ubuntu distribution and how to assing it to a new us

    Quote Originally Posted by audiomick View Post
    not bash? any idea why not?
    Why would it? Assigning a POSIX-compliant shell seems like a good thing to me.

  7. #7
    Join Date
    Apr 2007
    Beans
    891
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: What is the default shell in ubuntu distribution and how to assing it to a new us

    Hi,

    what is the difference between adduser and useradd except for the assignment of the default shell?

    thanks
    Ubuntu 10.04
    ATI 3470
    4 GB RAM.

  8. #8
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,292
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: What is the default shell in ubuntu distribution and how to assing it to a new us

    HOw about you try and find out?

    In a nutshell, useradd is non-interactive: you type the command, and it creates the users based on the prameters you give it, without asking further questions. adduser, on the other hand, is interactive: it will prompt you for information you don't supply on the command like (the user's login shell, among others).

  9. #9
    Join Date
    Apr 2008
    Location
    Australian in Germany
    Beans
    4,010
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: What is the default shell in ubuntu distribution and how to assing it to a new us

    From
    Code:
    man adduser
    Code:
    DESCRIPTION
           adduser  and  addgroup  add users and groups to the system according to
           command    line    options    and    configuration    information    in
           /etc/adduser.conf.   They  are  friendlier  front ends to the low level
           tools like useradd, groupadd and usermod programs, by default  choosing
           Debian  policy conformant UID and GID values, creating a home directory
           with skeletal configuration, running a custom script,  and  other  fea‐
           tures.  adduser and addgroup can be run in one of five modes:
    from
    Code:
    man useradd
    Code:
    DESCRIPTION
           useradd is a low level utility for adding users. On Debian,
           administrators should usually use adduser(8) instead.
    
           When invoked without the -D option, the useradd command creates a new
           user account using the values specified on the command line plus the
           default values from the system. Depending on command line options, the
           useradd command will update system files and may also create the new
           user´s home directory and copy initial files.
    
           By default, a group will also be created for the new user (see -g, -N,
           -U, and USERGROUPS_ENAB).
    Michael

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •