[arch-general] Permanently allow root access

Thomas Bächler thomas at archlinux.org
Sat Feb 1 03:52:44 EST 2014

Am 01.02.2014 04:55, schrieb piruthiviraj natarajan:
> I want to run root X application in a terminal.
> [root at archbox ~]# smplayer
> smplayer: cannot connect to X server
> [root at archbox ~]#
> I followed the wiki
> https://wiki.archlinux.org/index.php/Running_X_apps_as_root

Again, the most convenient method of doing this is not included in the
wiki. Add the line

session         optional        pam_xauth.so

to /etc/pam.d/su and /etc/pam.d/su-l. Then switch to your root user
using 'su' or 'su -'.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-general/attachments/20140201/7f5f3057/attachment.asc>

More information about the arch-general mailing list