https://subsecret.dk/index.php?title=Configuring_the_new_environment&feed=atom&action=history
Configuring the new environment - Revision history
2024-03-28T23:32:50Z
Revision history for this page on the wiki
MediaWiki 1.41.0
https://subsecret.dk/index.php?title=Configuring_the_new_environment&diff=28&oldid=prev
Steffen Mikkelsen: Created page with "=Creating root account= Creating root directory mkdir /root User file cat > /etc/passwd << "EOF" root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/dev/null:/bin/false nobody..."
2013-04-21T11:45:33Z
<p>Created page with "=Creating root account= Creating root directory mkdir /root User file cat > /etc/passwd << "EOF" root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/dev/null:/bin/false nobody..."</p>
<p><b>New page</b></p><div>=Creating root account=<br />
Creating root directory<br />
mkdir /root<br />
User file<br />
cat > /etc/passwd << "EOF"<br />
root:x:0:0:root:/root:/bin/bash<br />
bin:x:1:1:bin:/dev/null:/bin/false<br />
nobody:x:99:99:Unprivileged User:/dev/null:/bin/false<br />
EOF<br />
Group file<br />
cat > /etc/group << "EOF"<br />
root:x:0:<br />
bin:x:1:<br />
sys:x:2:<br />
kmem:x:3:<br />
tty:x:4:<br />
tape:x:5:<br />
daemon:x:6:<br />
floppy:x:7:<br />
disk:x:8:<br />
lp:x:9:<br />
dialout:x:10:<br />
audio:x:11:<br />
video:x:12:<br />
utmp:x:13:<br />
usb:x:14:<br />
cdrom:x:15:<br />
mail:x:34:<br />
nogroup:x:99:<br />
EOF<br />
<br />
Now exit environment and enter it again. It will now say "root" instead of "I have no name!"<br />
Set a root-password with passwd<br />
=Configuring timezone=<br />
run tzselect and answer the questions<br />
<br />
<br />
=Configuring nss=<br />
cat > /etc/nsswitch.conf << "EOF"<br />
# Begin /etc/nsswitch.conf<br />
passwd: files<br />
group: files<br />
shadow: files<br />
hosts: files dns<br />
networks: files<br />
protocols: files<br />
services: files<br />
ethers: files<br />
rpc: files<br />
# End /etc/nsswitch.conf<br />
EOF</div>
Steffen Mikkelsen