Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
User privilege
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Error: Enumeration symbol...
by
daniel_sap
[
Today
at 02:53:08 am]
exception external SIGSEG...
by
dseligo
[
Today
at 02:24:28 am]
Why does the call via fun...
by
Martin_fr
[
Today
at 01:59:35 am]
Hashing pointers by using...
by
jamie
[
Today
at 01:53:37 am]
[SOLVED] Is this a compil...
by
jamie
[
Today
at 01:46:54 am]
Problem installing LazPro...
by
peter.dell
[
Today
at 01:32:53 am]
AI interactions
by
Joanna
[December 13, 2025, 11:47:24 pm]
project - count source li...
by
bobonwhidbey
[December 13, 2025, 10:30:31 pm]
Recomendations for conver...
by
BlueIcaro
[December 13, 2025, 09:49:20 pm]
FPC 3.2.4-rc1 available
by
PeterBB
[December 13, 2025, 08:31:32 pm]
fpsockets error: 10047
by
parcel
[December 13, 2025, 04:03:56 pm]
So many "newbies"
by
Joanna
[December 13, 2025, 02:52:06 pm]
Is it possible to run "mo...
by
Thausand
[December 13, 2025, 02:42:56 pm]
TIBDataSet "Closing"? on ...
by
RedOctober
[December 13, 2025, 02:38:05 pm]
TLazSerial : serial port ...
by
CM630
[December 13, 2025, 02:20:24 pm]
connecting to mariadb
by
alanyoung
[December 13, 2025, 01:27:11 pm]
How to get the standard m...
by
stem
[December 13, 2025, 12:50:55 pm]
Lookup field: error list ...
by
BlueIcaro
[December 13, 2025, 12:00:10 pm]
Anchoring controls with d...
by
jamie
[December 13, 2025, 11:22:45 am]
Recompiled IDE with LCLRe...
by
AlexTP
[December 13, 2025, 05:09:56 am]
Commerce website written ...
by
Joanna
[December 13, 2025, 01:00:28 am]
TaurusTLS 1.0.0.25 beta 2...
by
LeP
[December 12, 2025, 09:21:31 pm]
Single / Double / Float s...
by
tetrastes
[December 12, 2025, 09:10:39 pm]
Publish a LAMW app in F-d...
by
spacepascal
[December 12, 2025, 09:00:41 pm]
OS/2 Warp 4 problem with ...
by
PascalDragon
[December 12, 2025, 08:30:23 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: User privilege (Read 3223 times)
xinyiman
Hero Member
Posts: 2259
User privilege
«
on:
April 04, 2011, 12:01:38 pm »
Assume that I have a user name that is connected to the computer, how do I know if he has administrator rights in windows / linux? and if no user-level administrator who is?
Logged
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1
Almindor
Sr. Member
Posts: 412
Re: User privilege
«
Reply #1 on:
April 04, 2011, 01:03:38 pm »
Depending on granularity you need, in unix, it's usually the root user (PID 0) who has all the rights.
No idea for windows. Note that this is a very poor mechanism.
Logged
xinyiman
Hero Member
Posts: 2259
Re: User privilege
«
Reply #2 on:
April 05, 2011, 11:55:13 am »
How do I get the PID via lazarus for linux?
Logged
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1
ik
Jr. Member
Posts: 88
ik
Re: User privilege
«
Reply #3 on:
April 05, 2011, 11:57:56 am »
You can use
fpGetPID
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
User privilege
TinyPortal
© 2005-2018