[Armadillo:07291] Re: Armadillo-440:ユーザの追加につきまして

Masakazu Itoh email@hidden
2011年 5月 27日 (金) 15:51:54 JST


竹之下様

お世話になっております。伊藤です。

ご回答ありがとうございました。

>静的にユーザーを追加したい(動作中変更する必要はない)のであれば、
>ATDE等でユーザーを作成して、その設定をコピーするという方法でも
ご教示いただいた、こちらで行いたいのですが
具体的な方法がわかりません。
まことに、申し訳ありませんが
ATDEを使用して行うやりかたをご教示お願いいたします。

お手数をおかけいたしますが
よろしくお願いいたします。


>竹之下です。
>
>> useraddコマンドは実装されていないようですが
>> なんらかの方法でユーザを追加することはできますでしょうか。
>adduserコマンドではいかがでしょうか?
>
>/etc/passwdと/etc/shadowに一行増えて、(必要であれば)ユーザの
>ホームディレクトリが追加されるだけですので、
>静的にユーザーを追加したい(動作中変更する必要はない)のであれば、
>ATDE等でユーザーを作成して、その設定をコピーするという方法でも
>よいと思います。
>
>[email@hidden (ttymxc1) ~]# adduser --help
>BusyBox v1.00 (2011.03.26-07:34+0000) multi-call binary
>
>Usage: adduser [OPTIONS] user_name
>
>Adds a user to the system
>
>Options:
>        -h DIR          Assign home directory DIR
>        -g GECOS        Assign gecos field GECOS
>        -s SHELL        Assign login shell SHELL
>        -G              Add the user to existing group GROUP
>        -S              create a system user (ignored)
>        -D              Do not assign a password (logins still possible via 
>ssh)
>        -H              Do not create the home directory
>
>[email@hidden (ttymxc1) ~]# adduser hoge
>Changing password for hoge
>Enter the new password (minimum of 5, maximum of 8 characters)
>Please use a combination of upper and lower case letters and numbers.
>Enter new password: 
>Re-enter new password: 
>Password changed.
>[email@hidden (ttymxc1) ~]# cat /etc/passwd 
>root:x:0:0:root:/root:/bin/ash
>daemon:x:1:1::/:
>www-data:x:33:33::/home/www-data:
>nobody:x:65534:65534::/tmp:
>guest:x:500:500::/home/guest:/bin/ash
>ftp:x:501:501::/home/ftp:
>avahi:x:650:650::/var/run/avahi-daemon:
>hoge:x:651:651:Linux User,,,:/home/hoge:/bin/sh
>[email@hidden (ttymxc1) ~]# cat /etc/shadow
>root:KHZY7HSfgeO7w:1:0:99999:7:::
>daemon:!:1:0:99999:7:::
>www-data:!:1:0:99999:7:::
>nobody:!:1:0:99999:7:::
>ftp:!:1:0:99999:7:::
>guest::1:0:99999:7:::
>avahi:!:1:0:99999:7:::
>hoge:$1$$/wV2.F7oTI/wiC7DTyYtE0:15121:0:99999:7:::
>[email@hidden (ttymxc1) ~]# ls -l /home/hoge/
>
>Masakazu Itoh さんは書きました:
>> 竹之下様
>> 
>> お世話になっております。伊藤です。
>> 
>> Armadillo-440でユーザを追加したいと思います。
>> 
>> 稼動環境は
>> ・ユーザランド:atmark-dist-20110326
>> ・カーネル:linux-2.6.26-at-android(LCD拡張ボード リビジョンB用)
>> です。
>> 
>> useraddコマンドは実装されていないようですが
>> なんらかの方法でユーザを追加することはできますでしょうか。
>> 
>> ご教示いただければ幸いです。
>> 
>> 以上、よろしくお願いいたします。
>> _______________________________________________
>> armadillo mailing list
>> email@hidden
>> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo
>> 
>
>
>-- 
>Koyo Takenoshita
>
>_______________________________________________
>armadillo mailing list
>email@hidden
>http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo



armadillo メーリングリストの案内