Webmin Bash Variables

Taking care of your Linux box.
Post Reply
mudasir
Captain
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Location: Dubai
Contact:

Webmin Bash Variables

Post by mudasir »

Assalam-o-alaikum,

I am writing a script that will be used within Webmin by different Users of webmin.

I would like to know is there any way to know the user-id of the logged in user or to know the user-id of the person who executed the script.
Many users can run the script at the same time.

My script performs some special tasks allocated only to that user.


Looking forward for a quick and positive response.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
kbukhari
Major General
Posts: 1222
Joined: Sat Dec 31, 2005 12:29 am
Location: Lahore
Contact:

Re: Webmin Bash Variables

Post by kbukhari »

mudasir wrote:Assalam-o-alaikum,

I am writing a script that will be used within Webmin by different Users of webmin.

I would like to know is there any way to know the user-id of the logged in user or to know the user-id of the person who executed the script.
Many users can run the script at the same time.

My script performs some special tasks allocated only to that user.


Looking forward for a quick and positive response.
use $REMOTE_USER variable
--
Syed Kashif Ali Bukhari
+92-345-8444420
http://sysadminsline.com
http://kashifbukhari.com
mudasir
Captain
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Location: Dubai
Contact:

Post by mudasir »

Thanks allot kashif bhai.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
Post Reply