Webmin Bash Variables

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

Webmin Bash Variables

Postby mudasir » Mon Oct 26, 2009 5:08 am

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

Postby kbukhari » Mon Oct 26, 2009 12:26 pm

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:

Postby mudasir » Mon Oct 26, 2009 12:57 pm

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


Return to “Administration”

Who is online

Users browsing this forum: No registered users and 2 guests