What I'm doing:
- I've built GNU emacs for native use on the phone.
- I run emacs in daemon mode on the phone, so I connect to it anytime with emacsclient, to continue working with regular files, run processes, etc.
- When logging in from the terminal on the phone, I'm currently user 10157, everything works:
- When I connect via ssh to the phone from a PC (I use DigiSSHd on the phone), it logs me in as a regular user 10282, everything works:
Emacs runs fine etc. However, this way I can't connect via emacsclient to the emacs process running under user 10157. This is desirable, since I don't want to start two emacs processes, since I want to continue working with files that I have open in emacs under user 10157.
Therefore:
Fine, I can run emacs etc. However, I cannot access the web.
Thus I'm no longer in group 3003, necessary for internet access, besides other groups also.
Why does this group info get stripped, and how can I remedy this, so I can continue accessing the web when su as this user under ssh?
- I've built GNU emacs for native use on the phone.
- I run emacs in daemon mode on the phone, so I connect to it anytime with emacsclient, to continue working with regular files, run processes, etc.
- When logging in from the terminal on the phone, I'm currently user 10157, everything works:
Code:
$ id
uid=10157(10157) gid=10157(10157) groups=10157(10157),1015(1015),1023(1023),1028(1028),3003(3003)Code:
$ id
uid=10282 gid=10282 groups=1015(1015),1023(1023),1028(1028),3003(3003)Therefore:
Code:
$ su - 10157Code:
$ ping -c1 google.com
You must have internet permissions to use ping. Aborting.
$ id
uid=10157(10157) gid=10157(10157) groups=10157(10157)Why does this group info get stripped, and how can I remedy this, so I can continue accessing the web when su as this user under ssh?