Permissions Issue: Unable to Run Install

I am trying to install a backup agent on a SUSE Linux Enterprise 11 SP3 system. I have FTP’d the media to the system. I originally tried installing the agent to a regular user’s directory, but experienced the errors below. For testing purposes, I have transferred the media to the root’s “Documents” folder. I need to run the “cvpkgadd” file, but am unable to do so. I’ve tried with the following methods, but all give varying errors:

./cvpkgadd
su ./cvpkgadd
sudo ./cvpkgadd
su cvpkgadd
./sudo cvpkgadd

I seems to be a permission issue, but I can’t figure out why. I’ve looked at various forums, but am unable to find a solution. Below are details of the errors.

server:~/Documents/CommvaultAgent/DownloadPackageLocation/CVDownloads # ls -l
total 556
-rw-r–r-- 1 root root 8 Feb 23 11:41 .oem
-rw-r–r-- 1 root root 1390 Feb 23 10:51 AllTimeStamps_1453843990.txt
drwxr-xr-x 4 root root 4096 Mar 1 16:00 Updates
-rw-r–r-- 1 root root 239 Feb 23 10:51 cvpkgadd
-rw-r–r-- 1 root root 2614 Feb 23 10:51 cvpkgseed
-rw-r–r-- 1 root root 39053 Feb 23 10:51 detect
-rw-r–r-- 1 root root 356451 Feb 23 10:51 downloadfilelist.xml
drwxr-xr-x 3 root root 4096 Mar 1 16:00 linux-glibc2.11
drwxr-xr-x 3 root root 4096 Mar 1 16:00 linux-glibc2.11-x86_64
drwxr-xr-x 3 root root 4096 Mar 1 16:00 linux-glibc2.12
drwxr-xr-x 3 root root 4096 Mar 1 16:00 linux-glibc2.12-x86_64
drwxr-xr-x 7 root root 4096 Mar 1 16:00 linux-glibc2.3
drwxr-xr-x 8 root root 4096 Mar 1 16:00 linux-glibc2.3-x86_64
drwxr-xr-x 3 root root 4096 Mar 1 16:00 linux-glibc2.4
drwxr-xr-x 3 root root 4096 Mar 1 16:00 linux-glibc2.4-x86_64
drwxr-xr-x 3 root root 4096 Mar 1 16:00 linux-glibc2.5
drwxr-xr-x 3 root root 4096 Mar 1 16:00 linux-glibc2.5-x86_64
drwxr-xr-x 3 root root 4096 Mar 1 16:00 linux-glibc2.7
drwxr-xr-x 3 root root 4096 Mar 1 16:00 linux-glibc2.7-x86_64
drwxr-xr-x 3 root root 4096 Mar 1 16:00 linux-glibc2.9
drwxr-xr-x 3 root root 4096 Mar 1 16:00 linux-glibc2.9-x86_64
-rw-r–r-- 1 root root 41976 Feb 23 10:51 pkg.xml
-rw-r–r-- 1 root root 239 Feb 23 10:51 silent_install
-rw-r–r-- 1 root root 27772 Feb 23 10:51 support
-rw-r–r-- 1 root root 80 Feb 23 10:51 timestamp.txt
-rw-r–r-- 1 root root 44 Feb 23 10:51 version

servername:~/Documents/CommvaultAgent/DownloadPackageLocation/CVDownloads # ./sudo cvpkgadd
-bash: ./sudo: No such file or directory

servername:~/Documents/CommvaultAgent/DownloadPackageLocation/CVDownloads # ./cvpkgadd
-bash: ./cvpkgadd: Permission denied

servername:~/Documents/CommvaultAgent/DownloadPackageLocation/CVDownloads # su ./cvpkgadd
su: user ./cvpkgadd does not exist
servername:~/Documents/CommvaultAgent/DownloadPackageLocation/CVDownloads # sudo ./cvpkgadd
sudo: ./cvpkgadd: command not found

servername:~/Documents/CommvaultAgent/DownloadPackageLocation/CVDownloads # su cvpkgadd
su: user cvpkgadd does not exist

servername:~/Documents/CommvaultAgent/DownloadPackageLocation/CVDownloads # su -
Directory: /root
Wed Mar 2 13:32:23 EST 2016


I’ve also shown that I can reboot with and without sudo, but can’t with su.

servername:~/Documents/CommvaultAgent/DownloadPackageLocation/CVDownloads # reboot

Broadcast message from root (pts/0) (Wed Mar 2 13:08:44 2016):

The system is going down for reboot NOW!

servername:~/Documents/CommvaultAgent/DownloadPackageLocation/CVDownloads # su reboot
su: user reboot does not exist

servername:~/Documents/CommvaultAgent/DownloadPackageLocation/CVDownloads # sudo reboot

Broadcast message from root (pts/0) (Wed Mar 2 13:43:54 2016):

The system is going down for reboot NOW!

I have added the strace details below:

servername:~ # strace su ./cvpkgadd
execve("/bin/su", [“su”, “./cvpkgadd”], [/* 49 vars /]) = 0
brk(0) = 0x7fd0f0395000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd0f0187000
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=197644, …}) = 0
mmap(NULL, 197644, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd0f0156000
close(3) = 0
open("/lib64/libcrypt.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\240
\0\0\0\0\0\0”…, 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=57724, …}) = 0
mmap(NULL, 2335200, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd0efd2e000
fadvise64(3, 0, 2335200, POSIX_FADV_WILLNEED) = 0
mprotect(0x7fd0efd3a000, 2093056, PROT_NONE) = 0
mmap(0x7fd0eff39000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb000) = 0x7fd0eff39000
mmap(0x7fd0eff3b000, 184800, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd0eff3b000
close(3) = 0
open("/lib64/libpam.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\240
\0\0\0\0\0\0"…, 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=56048, …}) = 0
mmap(NULL, 2150992, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd0efb20000
fadvise64(3, 0, 2150992, POSIX_FADV_WILLNEED) = 0
mprotect(0x7fd0efb2d000, 2093056, PROT_NONE) = 0
mmap(0x7fd0efd2c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xc000) = 0x7fd0efd2c000
close(3) = 0
open("/lib64/libpam_misc.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\360\21\0\0\0\0\0\0”…, 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=14680, …}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd0f0155000
mmap(NULL, 2109736, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd0ef91c000
fadvise64(3, 0, 2109736, POSIX_FADV_WILLNEED) = 0
mprotect(0x7fd0ef91f000, 2093056, PROT_NONE) = 0
mmap(0x7fd0efb1e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fd0efb1e000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY) = 3
read(3, “\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\355\1\0\0\0\0\0”…, 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1787691, …}) = 0
mmap(NULL, 3651768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd0ef5a0000
fadvise64(3, 0, 3651768, POSIX_FADV_WILLNEED) = 0
mprotect(0x7fd0ef712000, 2097152, PROT_NONE) = 0
mmap(0x7fd0ef912000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x172000) = 0x7fd0ef912000
mmap(0x7fd0ef917000, 18616, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd0ef917000
close(3) = 0
open("/lib64/libaudit.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\0000+\0\0\0\0\0\0”…, 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=100936, …}) = 0
mmap(NULL, 2195992, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd0ef387000
fadvise64(3, 0, 2195992, POSIX_FADV_WILLNEED) = 0
mprotect(0x7fd0ef39e000, 2097152, PROT_NONE) = 0
mmap(0x7fd0ef59e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7fd0ef59e000
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\360\r\0\0\0\0\0\0”…, 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=19173, …}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd0f0154000
mmap(NULL, 2109728, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd0ef183000
fadvise64(3, 0, 2109728, POSIX_FADV_WILLNEED) = 0
mprotect(0x7fd0ef185000, 2097152, PROT_NONE) = 0
mmap(0x7fd0ef385000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fd0ef385000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd0f0153000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd0f0152000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd0f0151000
arch_prctl(ARCH_SET_FS, 0x7fd0f0152700) = 0
mprotect(0x7fd0ef385000, 4096, PROT_READ) = 0
mprotect(0x7fd0ef59e000, 4096, PROT_READ) = 0
mprotect(0x7fd0ef912000, 16384, PROT_READ) = 0
mprotect(0x7fd0efb1e000, 4096, PROT_READ) = 0
mprotect(0x7fd0efd2c000, 4096, PROT_READ) = 0
mprotect(0x7fd0eff39000, 4096, PROT_READ) = 0
mprotect(0x7fd0f0393000, 4096, PROT_READ) = 0
mprotect(0x7fd0f0188000, 4096, PROT_READ) = 0
munmap(0x7fd0f0156000, 197644) = 0
brk(0) = 0x7fd0f0395000
brk(0x7fd0f03b6000) = 0x7fd0f03b6000
open("/usr/lib/locale/locale-archive", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2512, …}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd0f0186000
read(3, “# Locale name alias data base.
#”…, 4096) = 2512
read(3, “”, 4096) = 0
close(3) = 0
munmap(0x7fd0f0186000, 4096) = 0
open("/usr/lib/locale/en_US.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=256324, …}) = 0
mmap(NULL, 256324, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd0f0112000
close(3) = 0
open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=26050, …}) = 0
mmap(NULL, 26050, PROT_READ, MAP_SHARED, 3, 0) = 0x7fd0f010b000
close(3) = 0
socket(PF_FILE, 0x80801 /* SOCK_??? /, 0) = 3
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0
sendto(3, “\2\0\0\0\v\0\0\0\7\0\0\0passwd\0”, 19, MSG_NOSIGNAL, NULL, 0) = 19
poll([{fd=3, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=3, revents=POLLIN|POLLHUP}])
recvmsg(3, {msg_name(0)=NULL, msg_iov(2)=[{“passwd\0”, 7}, {"\270O\3\0\0\0\0\0", 8}], msg_controllen=24, {cmsg_len=20, cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, {4}}, msg_flags=MSG_CMSG_CLOEXEC}, MSG_CMSG_CLOEXEC) = 15
mmap(NULL, 217016, PROT_READ, MAP_SHARED, 4, 0) = 0x7fd0f00d6000
close(4) = 0
close(3) = 0
socket(PF_FILE, 0x80801 /
SOCK_??? */, 0) = 3
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = 0
sendto(3, “\2\0\0\0\0\0\0\0\v\0\0\0./cvpkgadd\0”, 23, MSG_NOSIGNAL, NULL, 0) = 23
poll([{fd=3, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=3, revents=POLLIN|POLLHUP}])
read(3, “\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377\377\377\377\377\0\0\0\0\0\0\0\0”…, 36) = 36
close(3) = 0
write(2, "su: ", 4su: ) = 4
write(2, “user ./cvpkgadd does not exist”, 30user ./cvpkgadd does not exist) = 30
write(2, "
", 1
) = 1
close(1) = 0
close(2) = 0
exit_group(125) = ?
servername:~ #

Hi
You need to set the permissions on cvpkgadd to 0755;

chmod 0755 cvpkgadd
../cvpkgadd

Use su - then cd to the directory, using su only leaves you with the
user environment, not root user…

su
env
exit
su -
env
exit

If your already root user (su -) shutdown -r now or reboot will work, no
need for su or sudo


Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 SP1|GNOME 3.10.4|3.12.53-60.30-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!

That did the trick! Thanks for the quick response.