I am seeing strange behaviour when I change the ubuntu user name a home directory.
To change username, I use:
sudo usermod -l newuser ubuntu
To change home-folder, I use
sudo usermod -d /home/newuser -m newuser
.
This does make the expected changes but the ethernet stops working.
Only the “lo” network connection is shown by
ifconfig
as
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:360 (360.0 B) TX bytes:360 (360.0 B)
I checked the
/etc/group
file after using usermod to change the user name, all ubuntu references where changed to newuser.
If I do the process in reverse, ifconfig provides
dummy0 Link encap:Ethernet HWaddr 92:39:97:d4:13:0d
inet6 addr: fe80::9039:97ff:fed4:130d/64 Scope:Link
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:2604 (2.6 KB)
eth0 Link encap:Ethernet HWaddr 00:04:4b:8c:97:e1
inet addr:10.58.44.102 Bcast:10.58.63.255 Mask:255.255.224.0
inet6 addr: fe80::204:4bff:fe8c:97e1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1259 errors:0 dropped:0 overruns:0 frame:0
TX packets:610 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:168474 (168.4 KB) TX bytes:25114099 (25.1 MB)
Interrupt:42
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:360 (360.0 B) TX bytes:360 (360.0 B)
wlan0 Link encap:Ethernet HWaddr 00:04:4b:8c:97:df
inet6 addr: fe80::204:4bff:fe8c:97df/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:3384 (3.3 KB)
and I have connection to the internet.
There are other strange behaviours that occur under different users also. For example other users do not run tensorflow as fast.
Any suggestions?