coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting permission for ... Permission denied


From: Peter Johansson
Subject: Re: setting permission for ... Permission denied
Date: Tue, 27 Mar 2012 14:54:20 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120307 Thunderbird/10.0.3

Hi Mike,


On 03/27/2012 02:28 PM, Mike Frysinger wrote:
that's fairly old at this point. you should first attempt to upgrade to the latest version and see if the problem still exists.

Updated to 8.16

strace it:
        strace /usr/bin/install -c align.sh /mnt/hpc/local/bin


strace /usr/local/bin/install align.sh /mnt/hpc/local/bin

gives this output

execve("/usr/local/bin/install", ["/usr/local/bin/install", "align.sh", "/mnt/hpc/local/bin"], [/* 48 vars */]) = 0
brk(0) = 0x1f60000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f98f3e03000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=93841, ...}) = 0
mmap(NULL, 93841, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f98f3dec000
close(3) = 0
open("/lib64/libselinux.so.1", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0PX\0\2751\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=124624, ...}) = 0
mmap(0x31bd000000, 2221912, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x31bd000000
mprotect(0x31bd01d000, 2093056, PROT_NONE) = 0
mmap(0x31bd21c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c000) = 0x31bd21c000 mmap(0x31bd21e000, 1880, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x31bd21e000
close(3) = 0
open("/lib64/librt.so.1", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@!\200\2741\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=47064, ...}) = 0
mmap(0x31bc800000, 2128816, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x31bc800000
mprotect(0x31bc807000, 2093056, PROT_NONE) = 0
mmap(0x31bca06000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x31bca06000
close(3) = 0
open("/lib64/libacl.so.1", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\36\0\3061\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=33816, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f98f3deb000 mmap(0x31c6000000, 2126416, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x31c6000000
mprotect(0x31c6007000, 2093056, PROT_NONE) = 0
mmap(0x31c6206000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x31c6206000
close(3) = 0
open("/lib64/libattr.so.1", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\23\300\3111\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=21152, ...}) = 0
mmap(0x31c9c00000, 2113888, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x31c9c00000
mprotect(0x31c9c04000, 2093056, PROT_NONE) = 0
mmap(0x31c9e03000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x31c9e03000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\355\201\2731\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1908792, ...}) = 0
mmap(0x31bb800000, 3733672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x31bb800000
mprotect(0x31bb986000, 2097152, PROT_NONE) = 0
mmap(0x31bbb86000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x186000) = 0x31bbb86000 mmap(0x31bbb8b000, 18600, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x31bbb8b000
close(3) = 0
open("/lib64/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\r\0\2741\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=22536, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f98f3dea000 mmap(0x31bc000000, 2109696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x31bc000000
mprotect(0x31bc002000, 2097152, PROT_NONE) = 0
mmap(0x31bc202000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x31bc202000
close(3) = 0
open("/lib64/libpthread.so.0", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \\\300\2731\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=141576, ...}) = 0
mmap(0x31bbc00000, 2208672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x31bbc00000
mprotect(0x31bbc17000, 2093056, PROT_NONE) = 0
mmap(0x31bbe16000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x31bbe16000 mmap(0x31bbe18000, 13216, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x31bbe18000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f98f3de9000 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f98f3de7000
arch_prctl(ARCH_SET_FS, 0x7f98f3de77a0) = 0
mprotect(0x31bbe16000, 4096, PROT_READ) = 0
mprotect(0x31bc202000, 4096, PROT_READ) = 0
mprotect(0x31bbb86000, 16384, PROT_READ) = 0
mprotect(0x31c9e03000, 4096, PROT_READ) = 0
mprotect(0x31c6206000, 4096, PROT_READ) = 0
mprotect(0x31bca06000, 4096, PROT_READ) = 0
mprotect(0x31bd21c000, 4096, PROT_READ) = 0
mprotect(0x31bb21f000, 4096, PROT_READ) = 0
munmap(0x7f98f3dec000, 93841) = 0
set_tid_address(0x7f98f3de7a70) = 9522
set_robust_list(0x7f98f3de7a80, 0x18) = 0
futex(0x7fff86e068cc, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0x7fff86e068cc, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 7f98f3de77a0) = -1 EAGAIN (Resource temporarily unavailable) rt_sigaction(SIGRTMIN, {0x31bbc05aa0, [], SA_RESTORER|SA_SIGINFO, 0x31bbc0f4a0}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {0x31bbc05b30, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x31bbc0f4a0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=10240*1024, rlim_max=RLIM_INFINITY}) = 0
statfs("/selinux", {f_type=0xf97cff8c, f_bsize=4096, f_blocks=0, f_bfree=0, f_bavail=0, f_files=0, f_ffree=0, f_fsid={0, 0}, f_namelen=255, f_frsize=4096}) = 0
brk(0) = 0x1f60000
brk(0x1f81000) = 0x1f81000
gettid() = 9522
open("/proc/self/task/9522/attr/current", O_RDONLY) = 3
read(3, "unconfined_u:unconfined_r:unconf"..., 4095) = 54
close(3) = 0
open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=99158704, ...}) = 0
mmap(NULL, 99158704, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f98edf56000
close(3) = 0
geteuid() = 500
umask(0) = 02
stat("/mnt/hpc/local/bin", {st_mode=S_IFDIR|0777, st_size=0, ...}) = 0
stat("align.sh", {st_mode=S_IFREG|0775, st_size=59138, ...}) = 0
lstat("/mnt/hpc/local/bin/align.sh", {st_mode=S_IFREG|0744, st_size=59138, ...}) = 0
unlink("/mnt/hpc/local/bin/align.sh") = 0
open("align.sh", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0775, st_size=59138, ...}) = 0
open("/mnt/hpc/local/bin/align.sh", O_WRONLY|O_CREAT|O_EXCL, 0775) = 4
fstat(4, {st_mode=S_IFREG|0744, st_size=0, ...}) = 0
read(3, "#! /bin/sh\n# script mapping fast"..., 32768) = 32768
write(4, "#! /bin/sh\n# script mapping fast"..., 32768) = 32768
read(3, "cr_LETTERS\nas_cr_digits='0123456"..., 32768) = 26370
write(4, "cr_LETTERS\nas_cr_digits='0123456"..., 26370) = 26370
read(3, "", 32768) = 0
fsetxattr(4, "system.posix_acl_access", "\x02\x00\x00\x00\x01\x00\x06\x00\xff\xff\xff\xff\x04\x00\x00\x00\xff\xff\xff\xff \x00\x00\x00\xff\xff\xff\xff", 28, 0) = -1 EACCES (Permission denied)
open("/usr/share/locale/locale.alias", O_RDONLY) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=2512, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f98f3e02000
read(5, "# Locale name alias data base.\n#"..., 4096) = 2512
read(5, "", 4096) = 0
close(5) = 0
munmap(0x7f98f3e02000, 4096) = 0
open("/usr/local/share/locale/en_US.UTF-8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/share/locale/en_US.utf8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/share/locale/en_US/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/share/locale/en.UTF-8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/share/locale/en.utf8/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/share/locale/en/LC_MESSAGES/coreutils.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/local/lib/charset.alias", O_RDONLY|O_NOFOLLOW) = -1 ENOENT (No such file or directory)
write(2, "/usr/local/bin/install: ", 24/usr/local/bin/install: ) = 24
write(2, "setting permissions for \342\200\230/mnt/"..., 57setting permissions for ‘/mnt/hpc/local/bin/align.sh’) = 57 open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, ": Permission denied", 19: Permission denied) = 19
write(2, "\n", 1
) = 1
close(4) = 0
close(3) = 0
lseek(0, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
close(0) = 0
close(1) = 0
close(2) = 0
exit_group(1) = ?


Thanks,
Peter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]