Acc: Difference between revisions
(Removed redirect to UDB) Tag: Removed redirect |
No edit summary |
||
Line 32: | Line 32: | ||
<code>acc</code> runs as root using <code>[[priv]]</code> which allows it to access private credentials to access the UDB's [[PostgreSQL]] database, and UNSW service account credentials to access Active Directory. | <code>acc</code> runs as root using <code>[[priv]]</code> which allows it to access private credentials to access the UDB's [[PostgreSQL]] database, and UNSW service account credentials to access Active Directory. | ||
== See also == | |||
* <code>acc -h</code> |
Latest revision as of 12:25, 30 August 2023
acc
is a command-line utility used to view the content of, and make changes to, the UDB. When run by non-privileged users it cannot make changes. It is often used by scripts.
This page discusses the New UDB version of acc
. The Old UDB version is similar, but is mostly of historical interest.
When run without arguments
plinich@vx01:~$ acc User Name : plinich Aliases : z9702847, pierre Uid : 4606 Gid : 4606 Expires : 27nov2023 Groups : spider, csg, wheel, software[01feb2024] Group classes : software[01feb2024] User classes : CompFac_LabSupervisor, CompFac_Programming Misc classes : GriegNetworkAccess, Personal100MegDiscQuota : Personal200MegDiscQuota, Personal5GigDiscQuota : SelfStore10G, SelfStore20G Name : Mr Linich, Peter (Peter Linich) Position : Computer Systems Officer (Sch: Computer Science & Eng) UNSW Number : 9702847 UNSW Mail : p.linich@unsw.edu.au UNSW Home : //INFPWFS201.ad.unsw.edu.au/Staff006$/z9702847 CSE Home : /import/tintoretto/1/plinich Other Homes : /import/grieg/1/plinich /import/kamen/1/plinich CSE Password : !!{CRYPT}$1$aYsFkudx$etnxpwVSK409kNJ4Ff4mF0 Login Shell : /usr/local/bin/bash
When run without arguments the acc
command returns information about the user which ran the command.
Some of this comes from CSE's own UDB database, while some — particularly the personal and UNSW-specific information — is obtained by acc
via LDAP queries to UNSW's Active Directory servers.
acc
runs as root using priv
which allows it to access private credentials to access the UDB's PostgreSQL database, and UNSW service account credentials to access Active Directory.
See also
acc -h