Run pidgin as other user

It looks like pidgin can leak your pam login name to an irc server to which you connect. So I set up a new user and run pidgin with that.

Script:

#!/bin/sh
# 2020-07-05 07:35
# run as main user (bgstack15) inside GNU screen
xauth extract /tmp/.$$ $DISPLAY
chmod 0644 /tmp/.$$
sudo su newuser -c "xauth merge /tmp/.$$ ; pidgin ;"

It took some initial preparation to move my pidgin profile over, of course.

useradd newuser
sudo passwd newuser
sudo cp -pr ~bgstack15/.purple ~newuser
sudo chown -R newuser.newuser ~newuser/.purple

I feel like I’m the only pidgin irc user in the world…

References

Web references

Use su with ssh X-forwarding | Knowledge Base (this site)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.