Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
EACCES
Edit
PageHistory
Diff
Info
LikePages
!!!Permission Denied This is often confused with [EPERM], to quote SUSv3: ;:''Permission denied. An attempt was made to access a file in a way forbidden by its file access permissions.'' Examples include: * trying to lower a process's nice(1) value (ie make it a higher priority process) when you are not the superuser. (nice uses the setpriority(2) call, not the nice(2) call which returns EPERM). * trying to unlink(2) (delete) a file when you do not have write access to the file or the directory, or open a file for reading when you do not have read access. * doing something [SELinux] prohibits. In general, EACCES seems morely to be used for file permission conflicts, while EPERM seems more likely to be used for process-related permission conflicts. But you can see that even system calls use them differently.
37 pages link to
EACCES
:
ftruncate(2)
execve(2)
fcntl(2)
rmdir(2)
connect(2)
socketpair(2)
lstat(2)
mknod(2)
EPERM
creat(2)
fchdir(2)
acct(2)
access(2)
fstat(2)
chdir(2)
fstatfs(2)
chmod(2)
chown(2)
chroot(2)
bind(2)
mmap(2)
lchown(2)
link(2)
exec(3)
socket(2)
mkdir(2)
open(2)
mount(2)
msgctl(2)
msgget(2)
msgop(2)
munmap(2)
quotactl(2)
readlink(2)
rename(2)
semctl(2)
mprotect(2)