logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Problems running NWNX under new user

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support
View previous topic :: View next topic  
Author Message
Squatting Monk



Joined: 28 Jun 2007
Posts: 76

PostPosted: Sun Aug 12, 2012 23:41    Post subject: Problems running NWNX under new user Reply with quote

'nother Linux n00b question here!

NWN runs fine under the Ubuntu user I created. However, I wanted to create a new user without sudo privileges so that my other admin can log in and start up the server when he needs. I made sure to set him as a member of the group that owns all the NWN files, and they are set to group executable. However, when I run nwnstartup.sh, I get this:
Code:
$ ./nwnstartup.sh

NWNX2lib: Init
NWNX2lib: org SetString() at 81f41b4, new SetString() at 98f86c
NWNX2lib: org GetObj() at 81f40bc, new GetObj() at 98f893
* Parsing configuration...
NWN Extender v2.8-dev
(c) 2004 by the APS/NWNX Linux Conversion Group
(c) 2007-2010 by virusman and Acaos
Based on the Win32 version (c) 2003 by Ingmar Stieger (Papillon)
and Jeroen Broekhuizen
visit us at http://www.avlis.org

* Searching for signatures...
* Loading modules...
HASHSET plugin registered.
TWEAKS plugin registered.
FUNCSEXT plugin registered.
RESMAN plugin registered.
FUNCS plugin registered.
MNX plugin registered.
FUNCTIONS plugin registered.
WEAPONS plugin registered.
VISIBILITY plugin registered.
STRUCTS plugin registered.
EVENTS plugin registered.
TMI plugin registered.
ODBC plugin registered.
DMACTIONS plugin registered.
CHAT plugin registered.
EXTEND plugin registered.
NAMES plugin registered.
DEFENSES plugin registered.
PROFILER plugin registered.
FIXES plugin registered.
AREAS plugin registered.
CONNECT plugin registered.
SYSTEM plugin registered.
RESET plugin registered.
SPELLS plugin registered.
* NWNX2 activated.
Neverwinter Nights Server
Build:8109
Copyright BioWare Corp 1998-2004

Server: Loading...
Server: Running...

Server: Loading module "Development - S&S Core".
Server: Unable to load module
Server: Exiting...
NWNX2lib: Server exiting.


If give ownership of the files to him, it runs fine. However, then my first user gets the same errors.

Any clues?

(Note: I was originally getting an error because the logs weren't group writable, which caused all the plugins to fail. After fixing that, I tried making the module group writable, but that didn't seem to help. Not sure what I'm missing.)
Back to top
View user's profile Send private message
Lokey



Joined: 02 Jan 2005
Posts: 158

PostPosted: Mon Aug 13, 2012 3:37    Post subject: Reply with quote

You need the execute bit for some odd things, be sure group has that privilege at nwn folder on down (-R). Commands for such are chown and chmod (that's the allow writing logs part).
_________________
Neversummer PW NWNx powered mayhem Wink
Back to top
View user's profile Send private message
Squatting Monk



Joined: 28 Jun 2007
Posts: 76

PostPosted: Mon Aug 13, 2012 6:21    Post subject: Reply with quote

No dice. I got the same result after making everything group executable.

As a temporary solution, I set up an unprivileged user to own the NWN folder and created a bash script to open a shell as that user to run it with. Now we both can run it. I'd like to find a less kludgy system, though.
Back to top
View user's profile Send private message
acomputerdood



Joined: 30 Nov 2008
Posts: 27

PostPosted: Mon Aug 13, 2012 15:01    Post subject: Reply with quote

posting the output of "ls -alR" done in your nwn folder would greatly help.

as would "id" and "groups" for each user in question.
Back to top
View user's profile Send private message
elven



Joined: 28 Jul 2006
Posts: 259
Location: Germany

PostPosted: Mon Aug 13, 2012 16:10    Post subject: Reply with quote

Please check logs.0/nwserverLog1.txt and logs.0/nwserverError1.txt.

That error usually means a hak, tlk or mod is missing/inaccessible.
Back to top
View user's profile Send private message
Squatting Monk



Joined: 28 Jun 2007
Posts: 76

PostPosted: Tue Aug 14, 2012 1:54    Post subject: Reply with quote

logs.0/nwserverLog1.txt:
Code:
[Mon Aug 13 18:01:54] Loading Module: Development - S&S Core
Could not load the Module.
Could not unpack the module..
[Mon Aug 13 18:01:54] Server Shutting Down


logs.0/nwserverError1.txt is blank.

Originally, squattingmonk (group "nwn-admin") was the file owner. The new user is sherincall (also group "nwn-admin"). As part of my work around, I created a new user nwn (again, in group "nwn-admin") to execute the server, so sherincall can run it without needing squattingmonk's password or superuser access. nwn is now the file owner for all files in the NWN install.

Code:
$ groups nwn sherincall squattingmonk
nwn : nwn nwn-admin
sherincall : sherincall ssh nwn-admin
squattingmonk : www-data adm dialout cdrom plugdev ssh lpadmin sambashare admin subversion nwn-admin


ls -alR:
Code:
.:
total 29560
drwxr-xr-x 19 nwn  nwn-admin     4096 2012-08-13 18:10 .
drwxr-xr-x  4 root root          4096 2012-08-13 18:08 ..
-rw-r-xr--  1 nwn  nwn-admin   966016 2012-08-13 18:10 chitin.key
drwxr-xr-x  2 nwn  nwn-admin     4096 2012-08-13 18:09 data
drwxr-xr-x  2 nwn  nwn-admin     4096 2012-08-13 18:08 database
-rw-r-xr--  1 nwn  nwn-admin 12764158 2012-08-13 18:08 dialog.tlk
drwxr-xr-x  2 nwn  nwn-admin     4096 2012-08-13 18:08 dmvault
drwxr-xr-x  2 nwn  nwn-admin     4096 2012-08-13 18:08 docs
drwxr-xr-x  2 nwn  nwn-admin     4096 2012-08-13 18:10 erf
drwxr-xr-x  2 nwn  nwn-admin     4096 2012-08-13 18:08 hak
drwxr-xr-x  2 nwn  nwn-admin     4096 2012-08-13 18:09 localvault
drwxr-xr-x  2 nwn  nwn-admin     4096 2012-08-13 18:10 logs
drwxrwxr-x  2 nwn  nwn-admin     4096 2012-08-13 18:08 logs.0
drwxr-xr-x  2 nwn  nwn-admin     4096 2012-08-13 18:08 modules
drwxr-xr-x  2 nwn  nwn-admin     4096 2012-08-13 18:10 nwm
-rw---x---  1 nwn  nwn-admin        2 2012-08-13 18:08 .nwnpid
-rw-r-xr--  1 nwn  nwn-admin     1124 2012-08-13 18:08 nwnplayer.ini
-rwxr-xr-x  1 nwn  nwn-admin      388 2012-08-13 18:08 nwnstartup.sh
-rwxr-xr-x  1 nwn  nwn-admin      400 2012-08-13 18:08 nwnstartup.sh.bak
-rw-r-xr--  1 nwn  nwn-admin   192085 2012-08-13 18:10 NWNv169.txt
-rw-r-xr--  1 nwn  nwn-admin     2095 2012-08-13 18:10 nwnx2.ini
-rwxr-xr-x  1 nwn  nwn-admin  1327583 2012-08-13 18:10 nwnx2.so
-rwxr-xr-x  1 nwn  nwn-admin    27929 2012-08-13 18:10 nwnx_areas.so
-rwxr-xr-x  1 nwn  nwn-admin    44369 2012-08-13 18:08 nwnx_chat.so
-rwxr-xr-x  1 nwn  nwn-admin  1436484 2012-08-13 18:10 nwnx_connect.so
-rwxr-xr-x  1 nwn  nwn-admin  1175726 2012-08-13 18:10 nwnx_defenses.so
-rwxr-xr-x  1 nwn  nwn-admin    26934 2012-08-13 18:08 nwnx_dmactions.so
-rwxr-xr-x  1 nwn  nwn-admin    61348 2012-08-13 18:08 nwnx_events.so
-rwxr-xr-x  1 nwn  nwn-admin    50853 2012-08-13 18:08 nwnx_extend.so
-rwxr-xr-x  1 nwn  nwn-admin    60147 2012-08-13 18:10 nwnx_fixes.so
-rwxr-xr-x  1 nwn  nwn-admin    33610 2012-08-13 18:08 nwnx_funcsext.so
-rwxr-xr-x  1 nwn  nwn-admin  2919199 2012-08-13 18:08 nwnx_funcs.so
-rwxr-xr-x  1 nwn  nwn-admin    51768 2012-08-13 18:08 nwnx_functions.so
-rwxr-xr-x  1 nwn  nwn-admin    84417 2012-08-13 18:08 nwnx_hashset.so
-rwxr-xr-x  1 nwn  nwn-admin    62913 2012-08-13 18:08 nwnx_mnx.so
-rwxr-xr-x  1 nwn  nwn-admin   104231 2012-08-13 18:09 nwnx_names.so
-rwxr-xr-x  1 nwn  nwn-admin    64430 2012-08-13 18:08 nwnx_odbc.so
-rwxr-xr-x  1 nwn  nwn-admin    49422 2012-08-13 18:10 nwnx_profiler.so
-rwxr-xr-x  1 nwn  nwn-admin    12291 2012-08-13 18:10 nwnx_reset.so
-rwxr-xr-x  1 nwn  nwn-admin    95061 2012-08-13 18:08 nwnx_resman.so
-rwxr-xr-x  1 nwn  nwn-admin   224701 2012-08-13 18:10 nwnx_spells.so
-rwxr-xr-x  1 nwn  nwn-admin   287686 2012-08-13 18:08 nwnx_structs.so
-rwxr-xr-x  1 nwn  nwn-admin   353827 2012-08-13 18:10 nwnx_system.so
-rwxr-xr-x  1 nwn  nwn-admin    12518 2012-08-13 18:08 nwnx_tmi.so
-rwxr-xr-x  1 nwn  nwn-admin   104077 2012-08-13 18:08 nwnx_tweaks.so
-rwxr-xr-x  1 nwn  nwn-admin   131298 2012-08-13 18:08 nwnx_visibility.so
-rwxr-xr-x  1 nwn  nwn-admin  1588563 2012-08-13 18:08 nwnx_weapons.so
-rwxr-xr-x  1 nwn  nwn-admin  4464553 2012-08-13 18:08 nwserver
drwxr-xr-x  2 nwn  nwn-admin     4096 2012-08-13 18:08 override
drwxr-xr-x  2 nwn  nwn-admin     4096 2012-08-13 18:08 portraits
-rw-r-xr--  1 nwn  nwn-admin     8234 2012-08-13 18:10 readme.linuxserver.txt
drwxr-xr-x  2 nwn  nwn-admin     4096 2012-08-13 18:10 saves
drwxr-xr-x  3 nwn  nwn-admin     4096 2012-08-13 18:08 servervault
drwxr-xr-x  2 nwn  nwn-admin     4096 2012-08-13 18:08 temp
drwxr-xr-x  3 nwn  nwn-admin     4096 2012-08-13 18:10 utils
-rw-r-xr--  1 nwn  nwn-admin   319748 2012-08-13 18:08 xp1.key
-rw-r-xr--  1 nwn  nwn-admin   565004 2012-08-13 18:10 xp2.key
-rw-r-xr--  1 nwn  nwn-admin   148110 2012-08-13 18:10 xp2patch.key
-rw-r-xr--  1 nwn  nwn-admin   276827 2012-08-13 18:08 xp3.key

./data:
total 1757988
drwxr-xr-x  2 nwn nwn-admin      4096 2012-08-13 18:09 .
drwxr-xr-x 19 nwn nwn-admin      4096 2012-08-13 18:10 ..
-rw-r-xr--  1 nwn nwn-admin   2115713 2012-08-13 18:09 2da.bif
-rw-r-xr--  1 nwn nwn-admin  72250447 2012-08-13 18:09 aurora_gui.bif
-rw-r-xr--  1 nwn nwn-admin  33948746 2012-08-13 18:08 aurora_tcn.bif
-rw-r-xr--  1 nwn nwn-admin  15142645 2012-08-13 18:09 aurora_tdc.bif
-rw-r-xr--  1 nwn nwn-admin  16035541 2012-08-13 18:08 aurora_tde.bif
-rw-r-xr--  1 nwn nwn-admin  18504549 2012-08-13 18:09 aurora_tdm.bif
-rw-r-xr--  1 nwn nwn-admin  18148437 2012-08-13 18:08 aurora_tds.bif
-rw-r-xr--  1 nwn nwn-admin  17353789 2012-08-13 18:09 aurora_tic.bif
-rw-r-xr--  1 nwn nwn-admin  29256352 2012-08-13 18:09 aurora_tin.bif
-rw-r-xr--  1 nwn nwn-admin    625214 2012-08-13 18:09 aurora_tms.bif
-rw-r-xr--  1 nwn nwn-admin  14337275 2012-08-13 18:09 aurora_ttf.bif
-rw-r-xr--  1 nwn nwn-admin  18561957 2012-08-13 18:08 aurora_ttr.bif
-rw-r-xr--  1 nwn nwn-admin    393961 2012-08-13 18:08 editor.bif
-rw-r-xr--  1 nwn nwn-admin    281185 2012-08-13 18:09 ini.bif
-rw-r-xr--  1 nwn nwn-admin       115 2012-08-13 18:08 misc.bif
-rw-r-xr--  1 nwn nwn-admin  72343110 2012-08-13 18:08 models_01.bif
-rw-r-xr--  1 nwn nwn-admin  82484368 2012-08-13 18:08 models_02.bif
-rw-r-xr--  1 nwn nwn-admin  10043061 2012-08-13 18:09 scripts.bif
-rw-r-xr--  1 nwn nwn-admin  13331657 2012-08-13 18:09 templates.bif
-rw-r-xr--  1 nwn nwn-admin   5415061 2012-08-13 18:08 xp1.bif
-rw-r-xr--  1 nwn nwn-admin  35492258 2012-08-13 18:09 xp1_models.bif
-rw-r-xr--  1 nwn nwn-admin  18990529 2012-08-13 18:09 xp1_scripts.bif
-rw-r-xr--  1 nwn nwn-admin   7975358 2012-08-13 18:08 xp1_templates.bif
-rw-r-xr--  1 nwn nwn-admin  71359930 2012-08-13 18:09 xp1_tiles.bif
-rw-r-xr--  1 nwn nwn-admin   9770957 2012-08-13 18:08 xp2.bif
-rw-r-xr--  1 nwn nwn-admin  86608497 2012-08-13 18:09 xp2_models.bif
-rw-r-xr--  1 nwn nwn-admin 368532654 2012-08-13 18:09 xp2patch.bif
-rw-r-xr--  1 nwn nwn-admin  29554237 2012-08-13 18:08 xp2_scripts.bif
-rw-r-xr--  1 nwn nwn-admin  12074170 2012-08-13 18:08 xp2_templates.bif
-rw-r-xr--  1 nwn nwn-admin  76177224 2012-08-13 18:08 xp2_tiles.bif
-rw-r-xr--  1 nwn nwn-admin 642988626 2012-08-13 18:09 xp3.bif

./database:
total 12
drwxr-xr-x  2 nwn nwn-admin 4096 2012-08-13 18:08 .
drwxr-xr-x 19 nwn nwn-admin 4096 2012-08-13 18:10 ..
-rw-r-xr--  1 nwn nwn-admin   36 2012-08-13 18:08 database.txt

./dmvault:
total 8
drwxr-xr-x  2 nwn nwn-admin 4096 2012-08-13 18:08 .
drwxr-xr-x 19 nwn nwn-admin 4096 2012-08-13 18:10 ..

./docs:
total 8
drwxr-xr-x  2 nwn nwn-admin 4096 2012-08-13 18:08 .
drwxr-xr-x 19 nwn nwn-admin 4096 2012-08-13 18:10 ..

./erf:
total 8
drwxr-xr-x  2 nwn nwn-admin 4096 2012-08-13 18:10 .
drwxr-xr-x 19 nwn nwn-admin 4096 2012-08-13 18:10 ..

./hak:
total 8
drwxr-xr-x  2 nwn nwn-admin 4096 2012-08-13 18:08 .
drwxr-xr-x 19 nwn nwn-admin 4096 2012-08-13 18:10 ..

./localvault:
total 8
drwxr-xr-x  2 nwn nwn-admin 4096 2012-08-13 18:09 .
drwxr-xr-x 19 nwn nwn-admin 4096 2012-08-13 18:10 ..

./logs:
total 8
drwxr-xr-x  2 nwn nwn-admin 4096 2012-08-13 18:10 .
drwxr-xr-x 19 nwn nwn-admin 4096 2012-08-13 18:10 ..

./logs.0:
total 808
drwxrwxr-x  2 nwn nwn-admin   4096 2012-08-13 18:08 .
drwxr-xr-x 19 nwn nwn-admin   4096 2012-08-13 18:10 ..
-rw-rwxr--  1 nwn nwn-admin    696 2012-08-13 18:36 nwnx2.txt
-rw-rwxr--  1 nwn nwn-admin    106 2012-08-13 18:36 nwnx_areas.txt
-rw-rwxr--  1 nwn nwn-admin    178 2012-08-13 18:36 nwnx_chat.txt
-rw-rwxr--  1 nwn nwn-admin    104 2012-08-13 18:36 nwnx_connect.txt
-rw-rwxr--  1 nwn nwn-admin 542214 2012-08-13 18:36 nwnx_core.txt
-rw-rwxr--  1 nwn nwn-admin      0 2012-08-13 18:36 nwnx_defenses.txt
-rw-rwxr--  1 nwn nwn-admin     29 2012-08-13 18:36 nwnx_dmactions.txt
-rw-rwxr--  1 nwn nwn-admin    751 2012-08-13 18:36 nwnx_events.txt
-rw-rwxr--  1 nwn nwn-admin    326 2012-08-13 18:36 nwnx_extend.txt
-rw-rwxr--  1 nwn nwn-admin    107 2012-08-13 18:36 nwnx_fixes.txt
-rw-rwxr--  1 nwn nwn-admin    161 2012-08-13 18:36 nwnx_fnext.txt
-rw-rwxr--  1 nwn nwn-admin    226 2012-08-13 18:36 nwnx_fn.txt
-rw-rwxr--  1 nwn nwn-admin      0 2012-08-13 18:36 nwnx_funcs.txt
-rw-rwxr--  1 nwn nwn-admin    196 2012-08-13 18:36 nwnx_hashset.txt
-rw-rwxr--  1 nwn nwn-admin      0 2012-08-13 18:36 nwnx_mnx.txt
-rw-rwxr--  1 nwn nwn-admin     85 2012-08-13 18:36 nwnx_names.txt
-rw-rwxr--  1 nwn nwn-admin    315 2012-08-13 18:36 nwnx_odbc.txt
-rw-rwxr--  1 nwn nwn-admin    283 2012-08-13 18:36 nwnx_profiler.txt
-rw-rwxr--  1 nwn nwn-admin    153 2012-08-13 18:36 nwnx_reset.txt
-rw-rwxr--  1 nwn nwn-admin    304 2012-08-13 18:36 nwnx_resman.txt
-rw-rwxr--  1 nwn nwn-admin      0 2012-08-13 18:36 nwnx_spells.txt
-rw-rwxr--  1 nwn nwn-admin      0 2012-08-13 18:36 nwnx_structs.txt
-rw-rwxr--  1 nwn nwn-admin      0 2012-08-13 18:36 nwnx_system.txt
-rw-rwxr--  1 nwn nwn-admin      0 2012-08-13 18:36 nwnx_tmi.txt
-rw-rwxr--  1 nwn nwn-admin      0 2012-08-13 18:36 nwnx_tweaks.txt
-rw-rwxr--  1 nwn nwn-admin     88 2012-08-13 18:36 nwnx_visibility.txt
-rw-rwxr--  1 nwn nwn-admin      0 2012-08-13 18:36 nwnx_weapons.txt
-rw-rwxr--  1 nwn nwn-admin      0 2012-08-13 18:36 nwserverError1.txt
-rw-rwxr--  1 nwn nwn-admin 201140 2012-08-13 18:36 nwserverLog1.txt

./modules:
total 7172
drwxr-xr-x  2 nwn nwn-admin    4096 2012-08-13 18:08 .
drwxr-xr-x 19 nwn nwn-admin    4096 2012-08-13 18:10 ..
-rw-r-xr--  1 nwn nwn-admin 4559098 2012-08-13 18:08 Contest Of Champions 0492.mod
-rw-r-xr--  1 nwn nwn-admin 2769096 2012-08-13 18:08 Development - S&S Core.mod

./nwm:
total 95660
drwxr-xr-x  2 nwn nwn-admin     4096 2012-08-13 18:10 .
drwxr-xr-x 19 nwn nwn-admin     4096 2012-08-13 18:10 ..
-r--r-xr--  1 nwn nwn-admin  2354266 2012-08-13 18:10 Chapter1E.nwm
-rw-r-xr--  1 nwn nwn-admin 20724087 2012-08-13 18:10 Chapter1.nwm
-rw-r-xr--  1 nwn nwn-admin 17174044 2012-08-13 18:10 Chapter2E.nwm
-rw-r-xr--  1 nwn nwn-admin 32662243 2012-08-13 18:09 Chapter2.nwm
-rw-r-xr--  1 nwn nwn-admin 15546154 2012-08-13 18:10 Chapter3.nwm
-rw-r-xr--  1 nwn nwn-admin  6678067 2012-08-13 18:09 Chapter4.nwm
-rw-r-xr--  1 nwn nwn-admin  2795139 2012-08-13 18:10 Prelude.nwm

./override:
total 1976
drwxr-xr-x  2 nwn nwn-admin   4096 2012-08-13 18:08 .
drwxr-xr-x 19 nwn nwn-admin   4096 2012-08-13 18:10 ..
-rw-r-xr--  1 nwn nwn-admin   7498 2012-08-13 18:08 iit_midmisc_029.tga
-rw-r-xr--  1 nwn nwn-admin 174796 2012-08-13 18:08 ls_car_01.dds
-rw-r-xr--  1 nwn nwn-admin   5500 2012-08-13 18:08 ls_car_01s.dds
-rw-r-xr--  1 nwn nwn-admin  24620 2012-08-13 18:08 ls_car_01s.tga
-rw-r-xr--  1 nwn nwn-admin 786476 2012-08-13 18:08 ls_car_01.tga
-rw-r-xr--  1 nwn nwn-admin 174796 2012-08-13 18:08 ls_car_03.dds
-rw-r-xr--  1 nwn nwn-admin   5500 2012-08-13 18:08 ls_car_03s.dds
-rw-r-xr--  1 nwn nwn-admin  24620 2012-08-13 18:08 ls_car_03s.tga
-rw-r-xr--  1 nwn nwn-admin 786476 2012-08-13 18:08 ls_car_03.tga

./portraits:
total 8
drwxr-xr-x  2 nwn nwn-admin 4096 2012-08-13 18:08 .
drwxr-xr-x 19 nwn nwn-admin 4096 2012-08-13 18:10 ..

./saves:
total 8
drwxr-xr-x  2 nwn nwn-admin 4096 2012-08-13 18:10 .
drwxr-xr-x 19 nwn nwn-admin 4096 2012-08-13 18:10 ..

./servervault:
total 12
drwxr-xr-x  3 nwn nwn-admin 4096 2012-08-13 18:08 .
drwxr-xr-x 19 nwn nwn-admin 4096 2012-08-13 18:10 ..
drwxr-xr-x  2 nwn nwn-admin 4096 2012-08-13 18:08 Squatting Monk

./servervault/Squatting Monk:
total 20
drwxr-xr-x 2 nwn nwn-admin  4096 2012-08-13 18:08 .
drwxr-xr-x 3 nwn nwn-admin  4096 2012-08-13 18:08 ..
-rw-r-xr-- 1 nwn nwn-admin 11281 2012-08-13 18:08 pennyunderfoot.bic

./temp:
total 8
drwxr-xr-x  2 nwn nwn-admin 4096 2012-08-13 18:08 .
drwxr-xr-x 19 nwn nwn-admin 4096 2012-08-13 18:10 ..

./utils:
total 2316
drwxr-xr-x  3 nwn nwn-admin    4096 2012-08-13 18:10 .
drwxr-xr-x 19 nwn nwn-admin    4096 2012-08-13 18:10 ..
-rw-r-xr--  1 nwn nwn-admin 2060365 2012-08-13 18:10 clcompile.exe
-rw-r-xr--  1 nwn nwn-admin  253952 2012-08-13 18:10 DataPack.exe
-rw-r-xr--  1 nwn nwn-admin   40960 2012-08-13 18:10 nwstub.exe
drwxr-xr-x  2 nwn nwn-admin    4096 2012-08-13 18:10 nwupdateskins

./utils/nwupdateskins:
total 2444
drwxr-xr-x 2 nwn nwn-admin   4096 2012-08-13 18:10 .
drwxr-xr-x 3 nwn nwn-admin   4096 2012-08-13 18:10 ..
-rw-r-xr-- 1 nwn nwn-admin 829688 2012-08-13 18:10 updaterbkgnd1.bmp
-rw-r-xr-- 1 nwn nwn-admin 829688 2012-08-13 18:10 updaterbkgnd2.bmp
-r--r-xr-- 1 nwn nwn-admin 829688 2012-08-13 18:10 updaterbkgnd3.bmp


Thanks for the help, guys. Smile
Back to top
View user's profile Send private message
acomputerdood



Joined: 30 Nov 2008
Posts: 27

PostPosted: Tue Aug 14, 2012 12:30    Post subject: Reply with quote

the immediate problem is that the top level directory isn't writable to the nwn-admin group:

Code:

drwxr-xr-x 19 nwn  nwn-admin     4096 2012-08-13 18:10 .


when you start the module, it wants to create a "currentgame.0" directory and copy the module into it.

doing a "chmod 775 ." (setting the group writable bit) will allow the game to do it.

you may still have errors, because i'm not 100% sure all the other directories it's going to want to write to. we can either trial and error this, or you can take the simple solution and recursively set the group writable bit on everything.
Back to top
View user's profile Send private message
elven



Joined: 28 Jul 2006
Posts: 259
Location: Germany

PostPosted: Tue Aug 14, 2012 12:34    Post subject: Reply with quote

nwserver unpacks modules to temp.X, where x is a number starting at 0 and incrementing for each running nwserver from the same directory. same goes for log.x.

So you'd have to make sure that all users can write to the parent directory (create new directories), for example via group access.

Note: I have never tried running two nwserver instances from the same directory and configuration. This might yield lots of problems with the .ini files, nwnx-specific logs and data, servervault issues, or nwn database file corruption.


Alternatively, way to set up multiuser nwserver could be something like this:

* Move all module-independent resource files to a global read-only path (for example /opt/nwserver)
* Create directoires each users' home that wants to run nwserver, and symlink resources into that, like so (cut for size to shorten example):

/opt/nwserver:
data/
patch.key
nwserver

/home/nwn1/nwserver:
data -> /opt/nwserver/data
patch.key -> /opt/nwserver/patch.key
nwserver -> /opt/nwserver/nwserver
modules/ (keep your local modules here)
nwn.ini, etc.

Or just copy all the files, they're not that big.
Back to top
View user's profile Send private message
eeriegeek



Joined: 07 Jan 2008
Posts: 59

PostPosted: Tue Aug 14, 2012 22:53    Post subject: Reply with quote

Managing directory modes to that level is tricky, especially for a new unix user and an executable for which we have no source. Another way to do this (that I'm using) is to set up a "pseudo" user called nwn to run the server. You can "su nwn" to administrate it. If you only want your administrator to run the restart scripts, you can use the "sudo" command to allow them to run only certain things.

The method elven describes, using a duplicate directory and symlinks for the readonly data files works fine for multiple servers. I use it on my server for a test instance because it's a low end server slice with only 10 G of storage, I didn't want to duplicate all the bic and hak files.
Back to top
View user's profile Send private message
Squatting Monk



Joined: 28 Jun 2007
Posts: 76

PostPosted: Wed Aug 15, 2012 0:26    Post subject: Reply with quote

D'oh! I'm such a n00b. The top-level directory not being writable was it. Embarassed Makes sense. It was saying it couldn't unpack it because it couldn't create the temporary directory for the module.

Thanks for the tips on how to run multiple instances. May come in handy. I'm just trying to create multiple users so my other developer can test the module when I'm not around to start it up. There's nothing live right now, so I don't need to worry about multiple instances just yet.

Thanks for all the help guys. Until next time! Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux technical support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group