You are not logged in.
Pages: 1
I assigned the directory all rights
ls -l
drwxrwxrwx 2 pit users 4096 09-14 15:06 qI changed the owner
sudo chown http: -R qAnd I have
ls -l
drwxrwxrwx 2 http http 4096 09-14 15:06 qWhy can't I execute (access denied) the time change if I have all the rights?
touch -d "$(date -R)" qLast edited by thommen (2022-09-15 08:38:05)
Offline
sudo -u http touch -d "$(date -R)" q… (access denied) …
No, you get an EPERM and
touch: setting times of 'q': Operation not permitted
https://man.archlinux.org/man/core/man- … p.en#EPERM
EPERM
The times argument is not a null pointer and the effective user ID of the calling process does not match the owner of the file and the calling process does not have appropriate privileges.
Reminder: don't paraphrase.
https://bbs.archlinux.org/viewtopic.php?id=57855
Offline
Pages: 1