[SunHELP] Problems with user/group

Edward Chase sunhelp at sunhelp.org
Tue May 29 10:07:23 CDT 2001


Unless you've done something funky with your system, Sun's convention is to 
use /export/home for local home directories.  The /home subdirectory is to 
be used for NFS mounted home directories.

You didn't say if you used the -m option with useradd...  This is needed to 
create home directories.  I'm also noticing that I'm needing to use -d as 
well and specify what directory to use for home.  With the above 
conventions, I don't know why Sun has /home as the default directory when 
using useradd.

example:

useradd -d /export/home/newuser -m newuser

I don't have an answer for the group problems you are having.



At 08:52 AM 5/29/2000 -0600, Ben Ricker wrote:
>I have created a new user and group using useradd and groupadd
>respectively. My first problem was that useradd did not create a home
>directory. So, I created a directory, as root, in /home for the user and
>changed its owner to the user and its permissions to 700. Then I edited
>passwd so that the home directory is set. The entry looks like this:
>
>username:x:1004:102::/home/username:/bin/sh
>
>However, when I su into the account and cd into ~, I get permission
>denied. /home has r-xr-xr-x permissions and the /home/username has the
>permissions rwx------.
>
>Additionally, the group I setup for this username does not work right.
>Here is the entry in /etc/group:
>
>groupname::102:
>
>Whenever I try to change any permissions to username:groupname, I get the
>following error:
>
>chown: unknown user id username.groupname
>
>Does this make sense? I have managed user/groups for dozens of users on
>Linux but Solaris' user management is vexing me.
>
>--------
>
>Ben Ricker
>System Adminstrator
>Wellinx.com
>
>
>_______________________________________________
>SunHELP maillist  -  SunHELP at sunhelp.org
>http://www.sunhelp.org/mailman/listinfo/sunhelp

---------------------------------------------------------------
  Edward F. Chase III     |   echase at providence.edu
  Providence College      |   http://www.providence.edu
  Computer Services       |   http://studentweb.providence.edu
  Providence, RI  02918   |




More information about the SunHELP mailing list