PDA

View Full Version : linux newbie permission issues?


bluegum
01-21-2004, 05:29 AM
question for any *NIX people for help please..

I have the following dir structure and am trying to run multiple servers

in root i have
/cod
and
/vent

as root * for testing* i can fire those game and vent servers fine

I then made an account for a user

/home/davew/cod

I copied all those files for /cod
and /vent for that person


cp -R /root/cod /home/davew
cp -R /root/vent /home/davew

so i have
/home/davew/cod
/home/davew/vent

NOW if i log in as root
i can get to

/home/davew/cod and fire the server in THAT directory fine

by using
./cod_lnxded +set dedicated 2 +set net_ip xx.xx.xxx.xx +set net_port 28961 +map_rotate $

* hence having 2 COD servers now running one on port 28960 and 28961

BUT
if i ssh in as davew * not root* I can not fire the 2nd server

either I get an out of memory error
OR cant get to this
/home/davew/cod
Or /home/davew/vent

again as root i can get to
/home/davew/cod and start the server

when logged in as davew
i can get to /home
then i try to cd davew
it brings me back to [~]#

again i am new to * nix ( about 5 hours into it)
was able to get 2 servers running if i log in as root
what permissions are not set proper that user davew can not get to /home/davew/cod path

and how do i set up the server so multiple users are able to run servers?

i want to have 5 users on this box with ssh and ftp and be able to run 5 cod servers



i explained it as best i can sorry if it does not make sense

yimboli
01-26-2004, 07:20 PM
yo

well i run a LAN server at my school, so I'm not sure about all the technical parts of FTPing and logging into a linux FTP... but here's what I know: it's probably a better idea, if possible, to set up your server as someone *other* than root. in linux, in general, only use root if you *have* to. this prevents permissions errors like the one you have.

DUe to my lack of ftp knowledge, I may be missing something. i.e. you might *have* to use root over the ftp (i dunno). if that's the case just go through and chmod 755 everything to set it executable by all users. if you want clarification there, type "man chmod" at ur cmd prompt and it'll tell ya everything you need to know - and then some. There's probably some flags you'll wanna use at the end of chmod that'll make it recurse through directories and whatnot, setting permissions to all files in the directory tree, i.e. "chmod -xx 755 /home/davew/cod", where -xx is the flag(s) that make it recurse through the whole tree.

best of luck, hope this helps.