How to make a directory?

Jordi Sayol g.sayol at yahoo.es
Tue May 1 18:09:46 PDT 2012


Al 02/05/12 01:45, En/na Minas ha escrit:
[...]
> Also, is there a way to require the root password of the user when going create the directory in a restricted folder (like /usr) AFTER the application has started?

In Linux, files and directories have the "setuid" and "setgid" special flags that allow ordinary users to execute binaries with temporary privileges of binary file owner or group.

i.e., /usr/bin/passwd (owns root, with setuid) modifies /etc/passwd by any user without write permission. /bin/ping (owns root, with setuid) allows any user to send and listen control packages throw net interfaces.

-- 
Jordi Sayol


More information about the Digitalmars-d-learn mailing list