useradd命令问题
root用户登录后
useradd -g other -d /user/hfsd0903/zhaodd -s /bin/bash -m zhaodd
报错为:UX:useradd:ERROR:Cannot update system files - loggin cannot be modified.
首先man useradd
useradd utility adds definitions to only the local
/etc/group, etc/passwd, /etc/passwd, /etc/shadow,
/etc/project, and /etc/user_attr files. If a network name
service such as NIS or NIS+ is being used to supplement the
local /etc/passwd file with additional entries, useradd can-
not change information supplied by the network name service.
However useradd will verify the uniqueness of the user name
(or role) and user id and the existence of any group names
specified against the external name service.
网上试了很多办法
/usr/bin/pwconv 后 pwconv:不期望的错误
/etc/user_attr文件:
#
# Copyright (c) 2003 by Sun Microsystems, Inc. All rights reserved.
#
# /etc/user_attr
#
# user attributes. see user_attr(4)
#
#pragmaident"@(#)user_attr 1.103/07/09 SMI"
#
adm::::profiles=Log Management
lp::::profiles=Printer Management
root::::auths=solaris.*,solaris.grant;profiles=Web Console Management,All;lock_after_retries=no
/etc/project文件:
system:0::::
user.root:1::::
noproject:2::::
default:3::::
group.staff:10::::
/etc/group文件:
root::0:
other::1:root
bin::2:root,daemon
sys::3:root,bin,adm
adm::4:root,daemon
uucp::5:root
mail::6:root
tty::7:root,adm
lp::8:root,adm
nuucp::9:root
staff::10:
daemon::12:root
sysadmin::14:
smmsp::25:
gdm::50:
webservd::80:
nobody::60001:
noaccess::60002:
nogroup::65534:
dba::100:
hfsd0902::101:
望各位大虾不吝赐教……
[解决办法]
帮顶。
[解决办法]
please try adduser
[解决办法]
Solaris默认安装时,根目录空间很小。
最好将新用户创建在/export/home目录下,磁盘所有的剩余空间都mount在这个目录下。
[解决办法]
add -u uid.
[解决办法]
试试看直接手工建立用户,用pwconv同步一下看看行不行,或者你可以考虑一个问题,solaris我不知道有没有这个,但linux上如果出现这种问题多半是selinux的问题,改为disable然后重启就行了
[解决办法]
你先在其它目录下创建看可以不.
[解决办法]
好像是selinux的问题,我以前遇到过,记得是selinux,编辑一下selinux配置文件看看