SRCDS Steam group


Permissions Help with ./steam command
#1
Hi, when I run the command
Code:
./steam
or
Code:
-autoupdate
when I want to update my server I get
Code:
Checking bootstrapper version ...
Segmentation fault
But when I do
Code:
sudo ./steam -command update -game "Counter Strike Source" -dir .
it works but everything in owned by root. Is there a way to fix this? Also before I used to be able to just do ./steam and stuff without doinf sudo ./steam, I am not sure what happened. thanks
Reply
#2
maybe try

chown -R youruser /dir/with/your/files/in

Then run it from your normal user
Reply
#3
bigtin Wrote:maybe try

chown -R youruser /dir/with/your/files/in

Then run it from your normal user

No that did not work, i still get
Code:
Checking bootstrapper version ...
Segmentation fault
Reply
#4
find /home -name .steam -type d -exec rm -rf {} \;

If that doesn't work, install strace and run this, and paste the last half of it into this message

strace -Ff ./steam -autoupdate (or whatever flags)
http://leaf.dragonflybsd.org/~gary

“The two most common elements in the universe are hydrogen and stupidity.”








Reply
#5
I used the command that you suggested (strace -Ff ./steam ) to try and resolve my problem also this is the output.

Code:
execve("./steam", ["./steam"], [/* 28 vars */]) = 0
[ Process PID=15697 runs in 32 bit mode. ]
brk(0)                                  = 0x8c22000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=61311, ...}) = 0
mmap2(NULL, 61311, PROT_READ, MAP_PRIVATE, 3, 0) = 0xfffffffff7f09000
close(3)                                = 0
open("/lib/libdl.so.2", 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\0P\352(\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=16428, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff7f08000
mmap2(0x28e000, 12408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x28e000
mmap2(0x290000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0x290000
close(3)                                = 0
open("/lib/libpthread.so.0", 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\0000\230'\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=125612, ...}) = 0
mmap2(0x275000, 90592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x275000
mmap2(0x288000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12) = 0x288000
mmap2(0x28a000, 4576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x28a000
close(3)                                = 0
open("/lib/libm.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\20\244I\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=208352, ...}) = 0
mmap2(0x497000, 155760, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x497000
mmap2(0x4bc000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x24) = 0x4bc000
close(3)                                = 0
open("/lib/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\320O\24\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1606808, ...}) = 0
mmap2(0x12f000, 1324452, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x12f000
mmap2(0x26d000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13e) = 0x26d000
mmap2(0x270000, 9636, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x270000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff7f07000
set_thread_area(0xfff16bd4)             = 0
mprotect(0x26d000, 8192, PROT_READ)     = 0
mprotect(0x4bc000, 4096, PROT_READ)     = 0
mprotect(0x288000, 4096, PROT_READ)     = 0
mprotect(0x290000, 4096, PROT_READ)     = 0
mprotect(0x12b000, 4096, PROT_READ)     = 0
munmap(0xf7f09000, 61311)               = 0
set_tid_address(0xf7f07b08)             = 15697
set_robust_list(0xf7f07b10, 0xc)        = 0
futex(0xfff16f94, FUTEX_WAKE_PRIVATE, 1) = 0
rt_sigaction(SIGRTMIN, {0x4002793d0, [], 0}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x10000004002792e0, [], 0}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=35184372097024*1024, rlim_max=67108864*1024}) = 0
uname({sys="Linux", node="cvi.designed4failure.com", ...}) = 0
brk(0)                                  = 0x8c22000
brk(0x8c43000)                          = 0x8c43000
futex(0x82a7a34, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x82a8a64, FUTEX_WAKE_PRIVATE, 2147483647) = 0
mmap2(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xfff16d40) = 0xfffffffff7ee6000
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xfff16d40) = 0xfffffffff7ea5000
munmap(0xf7ee6000, 135168)              = 0
mmap2(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xfff16d40) = 0xfffffffff7e24000
munmap(0xf7ea5000, 266240)              = 0
time(NULL)                              = 1249238517
getcwd("/usr/local/gcp/installs", 256)  = 24
stat64("/usr/local/gcp/installs/Steam.cfg", 0xfff16ab0) = -1 ENOENT (No such file or directory)
stat64("Steam.cfg", 0xfff16ab0)         = -1 ENOENT (No such file or directory)
futex(0x82acaac, FUTEX_WAKE_PRIVATE, 2147483647) = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xfff16c58) = 0xfffffffff7f17000
write(1, "Checking bootstrapper version .."..., 34Checking bootstrapper version ...
) = 34
getuid32()                              = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 3
fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
open("/etc/nsswitch.conf", O_RDONLY)    = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=1696, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xfff166a8) = 0xfffffffff7f16000
read(3, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1696
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xf7f16000, 4096)                = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=61311, ...}) = 0
mmap2(NULL, 61311, PROT_READ, MAP_PRIVATE, 3, 0) = 0xfffffffff7ef8000
close(3)                                = 0
open("/lib/libnss_files.so.2", 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\300\30\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=46680, ...}) = 0
mmap2(NULL, 41616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfffffffff7f0c000
mmap2(0xf7f15000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8) = 0xfffffffff7f15000
close(3)                                = 0
mprotect(0xf7f15000, 4096, PROT_READ)   = 0
munmap(0xf7ef8000, 61311)               = 0
open("/etc/passwd", O_RDONLY)           = 3
fcntl64(3, F_GETFD)                     = 0
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=3302, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xfff166b8) = 0xfffffffff7f0b000
read(3, "root:x:0:0:root:/root:/bin/bash\n"..., 4096) = 3302
close(3)                                = 0
munmap(0xf7f0b000, 4096)                = 0
time(NULL)                              = 1249238517
creat("/root/.steam/stm4a75ddf5.TMP", 0777) = 3
close(3)                                = 0
unlink("/root/.steam/stm4a75ddf5.TMP")  = 0
time(NULL)                              = 1249238517
creat("/root/.steam/stm4a75ddf5.TMP", 0777) = 3
close(3)                                = 0
unlink("/root/.steam/stm4a75ddf5.TMP")  = 0
stat64("/root/.steam/ClientRegistry.blob", {st_mode=S_IFREG|0644, st_size=970752, ...}) = 0
stat64("/root/.steam/ClientRegistry.blob", {st_mode=S_IFREG|0644, st_size=970752, ...}) = 0
stat64("/root/.steam/ClientRegistry.blob", {st_mode=S_IFREG|0644, st_size=970752, ...}) = 0
mmap2(NULL, 974848, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xfff16510) = 0xfffffffff7d36000
open("/root/.steam/ClientRegistry.blob", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=970752, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xfff164d0) = 0xfffffffff7d35000
read(3, "\1PJ\337\16\0\0\0\0\0\6\0004\337\16\0TopKey\1P4\337\16\0\0\0\0\0"..., 970752) = 970752
close(3)                                = 0
munmap(0xf7d35000, 4096)                = 0
munmap(0xf7d36000, 974848)              = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV (core dumped) +++
Reply
#6
Try removing /root/.steam

open("/root/.steam/ClientRegistry.blob", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=970752, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0xfff164d0) = 0xfffffffff7d35000
read(3, "\1PJ\337\16\0\0\0\0\0\6\0004\337\16\0TopKey\1P4\337\16\0\0\0\0\0"..., 970752) = 970752
close(3) = 0
munmap(0xf7d35000, 4096) = 0
munmap(0xf7d36000, 974848) = 0
http://leaf.dragonflybsd.org/~gary

“The two most common elements in the universe are hydrogen and stupidity.”








Reply
#7
chmod -R 755 /root/.steam
chown -R 755 root /root/.steam
[Image: b_350x20_C002748-004880-FFFFFF-000000.png]
Reply
#8
well i tried that root isnt even a folder on my system. but i tried to chmod and chown and neither did anything. STill getting the same error
Reply
#9
Heh.. Why are you running steam with sudo? Does it run fine with nonroot?
http://leaf.dragonflybsd.org/~gary

“The two most common elements in the universe are hydrogen and stupidity.”








Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)