Re: resurrecting srcpac

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Michael Klier wrote:
Jason Chu wrote:
Alrighty, mostly a couple questions:

Would it be an idea to build as the original users who ran srcpac?  I
guess if you use sudo, that won't quite work... you'd need something
pointing back to that user...

I don't know if that's possible, because you don't know whether srcpac was
invoked as root or via sudo. However, maybe a new separate user isn't needed and
we could just (ab)use nobody for the makepkg calls.


You could test for SUDO_USER environment variable. If it doesn't exists then it was not called through sudo and USER would give you the real user.


Armando



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux