免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2806 | 回复: 12
打印 上一主题 下一主题

求助:Solaris安装后添加用户问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-10-19 16:26 |只看该作者 |倒序浏览
请问:Solaris中是否有类似与HP-UX下的sam的管理工具能够创建用户、创建组等操作?

我安装完Solaris 10(默认安装) 后各个目录的属性如下:
# ls -l
total 596
drwxr-xr-x 2 root root 512 Oct 18 16:21    Desktop
drwxr-xr-x 2 root root 512 Oct 18 11:15    Documents
drwxr-xr-x 2 root root 512 Oct 18 10:53    TT_DB
lrwxrwxrwx 1 root root 9 Oct 18 09:00      bin ->; ./usr/bin
drwxr-xr-x 3 root root 512 Oct 18 17:12    cdrom
drwxr-xr-x 17 root sys 4096 Oct 18 17:12 dev
drwxr-xr-x 2 root sys 512 Oct 18 10:35     devices
drwxr-xr-x 75 root sys 4096 Oct 18 17:12 etc
drwxr-xr-x 3 root sys 512 Oct 18 12:23     export
dr-xr-xr-x 1 root root 1 Oct 18 17:11         home
drwxr-xr-x 14 root sys 512 Oct 18 09:33   kernel
drwxr-xr-x 7 root bin 5120 Oct 18 10:22    lib
drwx------ 2 root root 8192 Oct 18 09:00   lost+found
drwxr-xr-x 2 root sys 512 Oct 18 09:00     mnt
dr-xr-xr-x 1 root root 1 Oct 18 17:11         net
-rw-r--r-- 1 root root 0 Oct 18 09:07          noautoshutdown
drwxr-xr-x 5 root sys 512 Oct 18 10:30     opt
drwxr-xr-x 33 root sys 1024 Oct 18 09:01 platform
dr-xr-xr-x 49 root root 259008 Oct 18 17:15 proc
drwxr-xr-x 2 root sys 1024 Oct 18 09:29  sbin
drwxr-xr-x 4 root root 512 Oct 18 09:00  system
drwxrwxrwt 7 root sys 599 Oct 18 17:12  tmp
drwxr-xr-x 39 root sys 1024 Oct 18 10:31 usr
drwxr-xr-x 41 root sys 1024 Oct 18 10:36 var
dr-xr-xr-x 6 root root 512 Oct 18 17:12     vol
#
用useradd新增用户,用passwd给新增用户添加密码后,不能在/home目录下创建相应的的用户目录,root对/home也没有写的权限。
使用
# chmod 777 home
chmod: WARNING: can't change home
#
会得到can't change home的提示,这到底是怎么回事?

论坛徽章:
0
2 [报告]
发表于 2005-10-19 16:27 |只看该作者

求助:Solaris安装后添加用户问题

admintool或者admintools

论坛徽章:
0
3 [报告]
发表于 2005-10-19 16:28 |只看该作者

求助:Solaris安装后添加用户问题

用root在/home下能创建目录嘛

论坛徽章:
0
4 [报告]
发表于 2005-10-19 16:57 |只看该作者

求助:Solaris安装后添加用户问题

/home 用于autofs用的,一般用户要建在/export/home下


dr-xr-xr-x   1 root     root           1 Dec  3  2004 home
改成下面的就可以建立用户在这边
drwxr-xr-x  30 root     root         512 Sep 30 14:07 home

论坛徽章:
0
5 [报告]
发表于 2005-10-19 17:42 |只看该作者

求助:Solaris安装后添加用户问题

smc -- Solaris Management Console,功能很多。有向导。
/home在solaris中是用于autofs的,一般建用户目录在/export/home下,如果要建在/home下面,
1、修改/etc/master 把/home 这一行删除。
2、/etc/init.d/autofs stop
3、/etc/init.d/autofs start

论坛徽章:
0
6 [报告]
发表于 2005-10-19 20:27 |只看该作者

求助:Solaris安装后添加用户问题

admintool或者用命令useradd都可以.

论坛徽章:
0
7 [报告]
发表于 2005-10-19 21:04 |只看该作者

求助:Solaris安装后添加用户问题

太感谢!

论坛徽章:
0
8 [报告]
发表于 2005-10-20 08:12 |只看该作者

求助:Solaris安装后添加用户问题

[quote]原帖由 "风之幻想"]admintool或者用命令useradd都可以.[/quote 发表:


Solaris 10 已经没有admintool了

论坛徽章:
0
9 [报告]
发表于 2005-10-20 10:42 |只看该作者

求助:Solaris安装后添加用户问题

还没有用过10

论坛徽章:
0
10 [报告]
发表于 2005-10-20 11:11 |只看该作者

求助:Solaris安装后添加用户问题

谢谢suisuiyouyu兄的指导看来10的变化很大呀.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP