SRCDS Steam group


chown and chmod old server install.
#1
When i early installed my server i used root to install it. Afterwards i have been thinking about security. And needs to change the user and chmod my dirs.
I know that i can use chown and chmod. But im unsertain how i should do my changes without beening forced to redo everything. How?
Reply
#2
go to the directory where your server is installed and run:
Code:
chown <username>:users -R .
chmod u+rwX -R .
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#3
Should i run the server with the user that owns the files or should i have two users.

User 1. User owns the files
User 2. Runs the server (Can only write to logs, sprays, data)

Is this a good idea? And how will that affect autoupdating plugins?

Those plugins are usually written into plugins/disabled and then moved and writes over the previous ones.
Reply
#4
I would recommend running under the user that owns the server files. I don't see big security issues there. But make sure the user cannot do much else...
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#5
Quote:chmod u+rwX -R .
I think it should be:
Quote:chmod u+rwx -R .
Linux is a case sensitive operating system.
Reply
#6
(01-24-2010, 09:10 AM)HowieHjones Wrote:  I think it should be:

no it shoudn't. a small x makes all files executable, that's not what you want. a big X makes only directories executable (so you can go into them) and files that already have one executable bit set. that's usually the wanted behavour.
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#7
It´s how it looks now (user that runs the server)
Code:
drwxr-x--- 5 server server    4096 23 mar 17.15 hl2
-rwxr-xr-x 1 server server 3513408  2 sep  2005 hldsupdatetool.bin
-rwxr--r-- 1 server server    1388 23 mar 18.24 InstallRecord.blob
drwxr-x--- 5 server server    4096 23 mar 18.13 orangebox
-rwxr--r-- 1 server server    3413  7 apr  2005 readme.txt
-rwxr-xr-x 1 server server 6067624 30 aug  2008 steam

I would like to remove write acess to all folders and subfolders. And then afterwards allow write to only some neccesary dirs. But nothing happens.
Reply
#8
(03-24-2010, 04:12 AM)lhffan Wrote:  I would like to remove write acess to all folders and subfolders. And then afterwards allow write to only some neccesary dirs. But nothing happens.

what did you try?

removing all write access would be:
chmod ugo-r -R .

but beware that the owner of the files can changes that back...
http://www.fpsmeter.org
http://wiki.fragaholics.de/index.php/EN:Linux_Optimization_Guide (Linux Kernel HOWTO!)
Do not ask technical questions via PM!
Reply
#9
Im the owner

il trye that one...


edit

You didnt mean

chmod ugo-w -R .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)