bash$ mount rootfs on / type rootfs (rw) /dev/root on / type ext2 (ro) /proc on /proc type proc (rw) none on /dev/pts type devpts (rw) /dev/ram0 on /mnt/ram0 type ext2 (rw) usbdevfs on /proc/bus/usb type usbdevfs (rw) /dev/hda3 on /mnt/hda3 type ext2 (rw)
bash$ sudo su Password: # mount -o rw,remount / # adduser hogehoge Changing password for hogehoge 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. # mount -o ro,remount /
# mount -o rw,remount / # vi /etc/passwd hogehoge:x:501:501:Embedix User,,,:/mnt/hda3/hogehoge:/bin/bash ←こんな風にね # mkdir /mnt/hda3/hogehoge # chown -R hogehoge:hogehoge /mnt/hda3/hogehoge # mount -o ro,remount /
# mount -o rw,remount / # ls -al /etc/sudoers -r--r----- 1 root root 635 Apr 2 02:11 /etc/sudoers # vi /etc/sudoers hogehoge ALL=(ALL) ALL :q! # mount -o ro,remount /
bash$ sudo su Password: #