[cs631apue] question about using access(2) to check file permissions
lbustama
lbustama at stevens.edu
Tue Nov 19 21:33:46 EST 2013
Hi Professor,
Would sws or other web server ever be run using setuid or setgid to a
different user or group, root for example.
I was wondering what the desired behavior for serving files would be in
that case. access(2) uses the real uid and gid to check for file access
permissions, but if we are running as setuid of root we might want to
server files as long as they are within the server's configuration
parameters.
Thanks,
Luis
More information about the cs631apue
mailing list