Re: Can run some applications only as root




Hi Bill

Thanks for your email.

The user's home directopry permissions are

sengupta >> ls -l /home/
total 36
drwxr-xr-x 13 1002 1002 4096 2007-04-15 16:35 guest
drwx------ 2 root root 16384 2007-03-19 07:56 lost+found
drwx------ 58 sengupta sengupta 4096 2007-04-17 09:34 sengupta
drwx------ 30 sudakshina sudakshina 4096 2007-04-16 20:20 sudakshina

I ran strace on realplayer and seamonkey and here are the outputs
(last few lines) for both of them. Do you have any suggestions ?

Thanks,
Anand.

=== realplay
==============================================================

stat64("/home/sengupta/opt/lscsoft/libmetaio/lib", {st_mode=S_IFDIR|
0775, st_size=4096, ...}) = 0
open("/lib/tls/i686/sse2/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/lib/tls/i686/sse2/cmov", 0xbfe78648) = -1 ENOENT (No such
file or directory)
open("/lib/tls/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/lib/tls/i686/sse2", 0xbfe78648) = -1 ENOENT (No such file or
directory)
open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0`\1\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1307104, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f65000
mmap2(NULL, 1312164, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7e24000
mmap2(0xb7f5f000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_DENYWRITE, 3, 0x13b) = 0xb7f5f000
mmap2(0xb7f62000, 9636, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0xb7f62000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7e23000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e236c0, limit:
1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1,
seg_not_present:0, useable:1}) = 0
mprotect(0xb7f5f000, 4096, PROT_READ) = 0
getpid() = 9025
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
geteuid32() = 1000
brk(0) = 0x805f000
brk(0x8080000) = 0x8080000
getppid() = 9024
stat64("/home/sengupta", {st_mode=S_IFDIR|0700, st_size=4096, ...}) =
0
stat64(".", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
open("/usr/bin/realplay", O_RDONLY) = 3
fcntl64(3, F_DUPFD, 10) = 10
close(3) = 0
fcntl64(10, F_SETFD, FD_CLOEXEC) = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x8055270, ~[RTMIN RT_1], 0}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {SIG_DFL}, NULL, 8) = 0
read(10, "#!/bin/sh\n\n# If you don\'t have r"..., 8192) = 2550
stat64("/usr/local/RealPlayer", {st_mode=S_IFDIR|S_ISGID|0755,
st_size=4096, ...}) = 0
pipe([3, 4]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|
SIGCHLD, child_tidptr=0xb7e23708) = 9026
--- SIGCHLD (Child exited) @ 0 (0) ---
close(4) = 0
read(3, ":/usr/lib/libaoss.so.0.0.0\n", 128) = 27
read(3, "", 128) = 0
close(3) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 9026
write(1, "Warning: LD_PRELOAD=\":/usr/lib/l"..., 49Warning:
LD_PRELOAD=":/usr/lib/libaoss.so.0.0.0"
) = 49
stat64("", 0xbfe78a9c) = -1 ENOENT (No such file or
directory)
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|
SIGCHLD, child_tidptr=0xb7e23708) = 9029
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 9029
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|
SIGCHLD, child_tidptr=0xb7e23708) = 9030
wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV &&
WCOREDUMP(s)}], 0, NULL) = 9030
--- SIGCHLD (Child exited) @ 0 (0) ---
write(2, "Segmentation fault (core dumped)"..., 33Segmentation fault
(core dumped)
) = 33
read(10, "", 8192) = 0
exit_group(0) = ?
Process 9025 detached

=== SEAMONKEY
==========================================================

open("/home/sengupta/opt/lscsoft/libmetaio/lib/cmov/libc.so.6",
O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/home/sengupta/opt/lscsoft/libmetaio/lib/cmov", 0xbfebc668) =
-1 ENOENT (No such file or directory)
open("/home/sengupta/opt/lscsoft/libmetaio/lib/libc.so.6", O_RDONLY) =
-1 ENOENT (No such file or directory)
stat64("/home/sengupta/opt/lscsoft/libmetaio/lib", {st_mode=S_IFDIR|
0775, st_size=4096, ...}) = 0
open("/lib/tls/i686/sse2/cmov/libc.so.6", O_RDONLY) = -1 ENOENT (No
such file or directory)
stat64("/lib/tls/i686/sse2/cmov", 0xbfebc668) = -1 ENOENT (No such
file or directory)
open("/lib/tls/i686/sse2/libc.so.6", O_RDONLY) = -1 ENOENT (No such
file or directory)
stat64("/lib/tls/i686/sse2", 0xbfebc668) = -1 ENOENT (No such file or
directory)
open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0`\1\000"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1307104, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7f10000
mmap2(NULL, 1312164, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xb7dcf000
mmap2(0xb7f0a000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_DENYWRITE, 3, 0x13b) = 0xb7f0a000
mmap2(0xb7f0d000, 9636, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0xb7f0d000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0xb7dce000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7dce6c0, limit:
1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1,
seg_not_present:0, useable:1}) = 0
mprotect(0xb7f0a000, 4096, PROT_READ) = 0
getpid() = 9040
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
geteuid32() = 1000
brk(0) = 0x805f000
brk(0x8080000) = 0x8080000
getppid() = 9039
stat64("/home/sengupta", {st_mode=S_IFDIR|0700, st_size=4096, ...}) =
0
stat64(".", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
open("/usr/local/seamonkey/seamonkey", O_RDONLY) = 3
fcntl64(3, F_DUPFD, 10) = 10
close(3) = 0
fcntl64(10, F_SETFD, FD_CLOEXEC) = 0
rt_sigaction(SIGINT, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x8055270, ~[RTMIN RT_1], 0}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {SIG_DFL}, NULL, 8) = 0
read(10, "#!/bin/sh\n#\n# ***** BEGIN LICENS"..., 8192) = 8192
pipe([3, 4]) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|
SIGCHLD, child_tidptr=0xb7dce708) = 9041
--- SIGCHLD (Child exited) @ 0 (0) ---
close(4) = 0
read(3, "/usr/local/seamonkey\n", 128) = 21
read(3, "", 128) = 0
close(3) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 9041
stat64("/usr/local/seamonkey/run-mozilla.sh", {st_mode=S_IFREG|0755,
st_size=10492, ...}) = 0
geteuid32() = 1000
getgid32() = 1000
getegid32() = 1000
getgroups32(0, NULL) = 14
getgroups32(14, [4, 20, 24, 25, 29, 30, 44, 46, 110, 111, 113, 114,
116, 1000]) = 14
open("/dev/null", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3
fcntl64(2, F_DUPFD, 10) = 11
close(2) = 0
fcntl64(3, F_DUPFD, 2) = 2
close(3) = 0
open("/dev/null", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3
fcntl64(1, F_DUPFD, 10) = 12
close(1) = 0
fcntl64(3, F_DUPFD, 1) = 1
close(3) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|
SIGCHLD, child_tidptr=0xb7dce708) = 9042
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 2}], 0, NULL) = 9042
--- SIGCHLD (Child exited) @ 0 (0) ---
close(1) = 0
fcntl64(12, F_DUPFD, 1) = 1
close(12) = 0
close(2) = 0
fcntl64(11, F_DUPFD, 2) = 2
close(11) = 0
open("/usr/local/seamonkey/init.d", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
getdents64(3, /* 3 entries */, 4096) = 80
getdents64(3, /* 0 entries */, 4096) = 0
close(3) = 0
open("/home/sengupta/.mozilla/init.d", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/seamonkey/init.d/S*", 0xbfebc87c) = -1 ENOENT (No
such file or directory)
stat64("/home/sengupta/.mozilla/init.d/S*", 0xbfebc87c) = -1 ENOENT
(No such file or directory)
read(10, "script_args $dist_bin/$MOZILLA_B"..., 8192) = 204
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|
SIGCHLD, child_tidptr=0xb7dce708) = 9049
wait4(-1, Segmentation fault (core dumped)
[{WIFEXITED(s) && WEXITSTATUS(s) == 139}], 0, NULL) = 9049
--- SIGCHLD (Child exited) @ 0 (0) ---
open("/home/sengupta/.mozilla/init.d", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY) = -1 ENOENT (No such file or directory)
open("/usr/local/seamonkey/init.d", O_RDONLY|O_NONBLOCK|O_LARGEFILE|
O_DIRECTORY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
getdents64(3, /* 3 entries */, 4096) = 80
getdents64(3, /* 0 entries */, 4096) = 0
close(3) = 0
stat64("/home/sengupta/.mozilla/init.d/K*", 0xbfebc87c) = -1 ENOENT
(No such file or directory)
stat64("/usr/local/seamonkey/init.d/K*", 0xbfebc87c) = -1 ENOENT (No
such file or directory)
exit_group(139) = ?
Process 9040 detached





On Apr 17, 12:19 am, Bill Marcum <marcumb...@xxxxxxxxxxxxx> wrote:
On 16 Apr 2007 15:27:57 -0700,anando

<anand.sengu...@xxxxxxxxx> wrote:

Hi

I have a strange problem since I installed Feisty Fawn : I cannot run
applications like seamonkey, gizmo and realplayer as a regular user. I
can run them normally as root but not as a regular user (results in
segmentation fault in the latter case).

I poked around a bit and found that when I run the above applications
as root, it creates some special files and directories in the root's
home area e.g .realplayerrc, .gizmo etc. If I copy these directories
over to the user's home area, then I can start seamonkey, gizmo and
realplayer normally (as user) - but without these files, I get seg
faulted.

What are the permissions of the user's home directory? If you run
strace on those applications, does it show an error trying to create
those files?

--
The absurd is the essential concept and the first truth.
-- A. Camus


.



Relevant Pages