[SunHELP] Problems with user/group
Lund, Dennis
sunhelp at sunhelp.org
Tue May 29 11:53:30 CDT 2001
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C0E85F.E3E3FB00
Content-Type: text/plain
As stated below /home is for NFS mounted home directories. I use the
following:
# useradd -u500 -g500 -c"Test Account 1" -d/export/home/test1 \
-s/usr/bin/ksh -m -k/etc/skel test1
# tail -1 /etc/passwd
test1:x:500:500:Test Account 1:/export/home/test1:/usr/bin/ksh
Be sure the group exists before you create the user.
Dennis L. Lund
-----Original Message-----
From: Edward Chase [mailto:echase at postoffice.providence.edu]
Sent: Tuesday, May 29, 2001 11:07 AM
To: sunhelp at sunhelp.org; sunhelp at sunhelp.org
Subject: Re: [SunHELP] Problems with user/group
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 |
_______________________________________________
SunHELP maillist - SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp
<html>
<body>
<font size="3" face="Times New Roman"><span style="mso-fareast-font-family: Times New Roman; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">
- - - - - - - Appended by Scientific-Atlanta, Inc. - - - - - - -
<span style="font-size:10.0pt;font-family:Times New Roman;
mso-fareast-font-family:"Times New Roman";mso-ansi-language:EN-US;mso-fareast-language:
EN-US;mso-bidi-language:AR-SA"></span><font face="Times New Roman" size="3"><span style="mso-fareast-font-family:Times New Roman; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.</span></font></p>
</body>
</html>
------_=_NextPart_001_01C0E85F.E3E3FB00
Content-Type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [SunHELP] Problems with user/group</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>As stated below /home is for NFS mounted home directories. I use the </FONT>
<BR><FONT SIZE=2>following:</FONT>
</P>
<P><FONT SIZE=2># useradd -u500 -g500 -c"Test Account 1" -d/export/home/test1 \</FONT>
<BR><FONT SIZE=2>-s/usr/bin/ksh -m -k/etc/skel test1</FONT>
</P>
<P><FONT SIZE=2># tail -1 /etc/passwd</FONT>
<BR><FONT SIZE=2>test1:x:500:500:Test Account 1:/export/home/test1:/usr/bin/ksh</FONT>
</P>
<P><FONT SIZE=2>Be sure the group exists before you create the user.</FONT>
</P>
<P><FONT SIZE=2>Dennis L. Lund</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Edward Chase [<A HREF="mailto:echase at postoffice.providence.edu">mailto:echase at postoffice.providence.edu</A>]</FONT>
<BR><FONT SIZE=2>Sent: Tuesday, May 29, 2001 11:07 AM</FONT>
<BR><FONT SIZE=2>To: sunhelp at sunhelp.org; sunhelp at sunhelp.org</FONT>
<BR><FONT SIZE=2>Subject: Re: [SunHELP] Problems with user/group</FONT>
</P>
<BR>
<P><FONT SIZE=2>Unless you've done something funky with your system, Sun's convention is to </FONT>
<BR><FONT SIZE=2>use /export/home for local home directories. The /home subdirectory is to </FONT>
<BR><FONT SIZE=2>be used for NFS mounted home directories.</FONT>
</P>
<P><FONT SIZE=2>You didn't say if you used the -m option with useradd... This is needed to </FONT>
<BR><FONT SIZE=2>create home directories. I'm also noticing that I'm needing to use -d as </FONT>
<BR><FONT SIZE=2>well and specify what directory to use for home. With the above </FONT>
<BR><FONT SIZE=2>conventions, I don't know why Sun has /home as the default directory when </FONT>
<BR><FONT SIZE=2>using useradd.</FONT>
</P>
<P><FONT SIZE=2>example:</FONT>
</P>
<P><FONT SIZE=2>useradd -d /export/home/newuser -m newuser</FONT>
</P>
<P><FONT SIZE=2>I don't have an answer for the group problems you are having.</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2>At 08:52 AM 5/29/2000 -0600, Ben Ricker wrote:</FONT>
<BR><FONT SIZE=2>>I have created a new user and group using useradd and groupadd</FONT>
<BR><FONT SIZE=2>>respectively. My first problem was that useradd did not create a home</FONT>
<BR><FONT SIZE=2>>directory. So, I created a directory, as root, in /home for the user and</FONT>
<BR><FONT SIZE=2>>changed its owner to the user and its permissions to 700. Then I edited</FONT>
<BR><FONT SIZE=2>>passwd so that the home directory is set. The entry looks like this:</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>username:x:1004:102::/home/username:/bin/sh</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>However, when I su into the account and cd into ~, I get permission</FONT>
<BR><FONT SIZE=2>>denied. /home has r-xr-xr-x permissions and the /home/username has the</FONT>
<BR><FONT SIZE=2>>permissions rwx------.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>Additionally, the group I setup for this username does not work right.</FONT>
<BR><FONT SIZE=2>>Here is the entry in /etc/group:</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>groupname::102:</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>Whenever I try to change any permissions to username:groupname, I get the</FONT>
<BR><FONT SIZE=2>>following error:</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>chown: unknown user id username.groupname</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>Does this make sense? I have managed user/groups for dozens of users on</FONT>
<BR><FONT SIZE=2>>Linux but Solaris' user management is vexing me.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>--------</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>Ben Ricker</FONT>
<BR><FONT SIZE=2>>System Adminstrator</FONT>
<BR><FONT SIZE=2>>Wellinx.com</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>_______________________________________________</FONT>
<BR><FONT SIZE=2>>SunHELP maillist - SunHELP at sunhelp.org</FONT>
<BR><FONT SIZE=2>><A HREF="http://www.sunhelp.org/mailman/listinfo/sunhelp" TARGET="_blank">http://www.sunhelp.org/mailman/listinfo/sunhelp</A></FONT>
</P>
<P><FONT SIZE=2>---------------------------------------------------------------</FONT>
<BR><FONT SIZE=2> Edward F. Chase III | echase at providence.edu</FONT>
<BR><FONT SIZE=2> Providence College | <A HREF="http://www.providence.edu" TARGET="_blank">http://www.providence.edu</A></FONT>
<BR><FONT SIZE=2> Computer Services | <A HREF="http://studentweb.providence.edu" TARGET="_blank">http://studentweb.providence.edu</A></FONT>
<BR><FONT SIZE=2> Providence, RI 02918 |</FONT>
</P>
<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>SunHELP maillist - SunHELP at sunhelp.org</FONT>
<BR><FONT SIZE=2><A HREF="http://www.sunhelp.org/mailman/listinfo/sunhelp" TARGET="_blank">http://www.sunhelp.org/mailman/listinfo/sunhelp</A></FONT>
</P>
<CODE><FONT SIZE=3><BR>
<BR>
<html><BR>
<body><BR>
<font size="3" face="Times New Roman"><span style="mso-fareast-font-family: Times New Roman; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><BR>
- - - - - - - Appended by Scientific-Atlanta, Inc. - - - - - - -<BR>
<span style="font-size:10.0pt;font-family:Times New Roman;<BR>
mso-fareast-font-family:"Times New Roman";mso-ansi-language:EN-US;mso-fareast-language:<BR>
EN-US;mso-bidi-language:AR-SA"></span><font face="Times New Roman" size="3"><span style="mso-fareast-font-family:Times New Roman; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.</span></font></p><BR>
</body><BR>
</html><BR>
</FONT></CODE></BODY>
</HTML>
------_=_NextPart_001_01C0E85F.E3E3FB00--
More information about the SunHELP
mailing list