Simple script to start with:
#!/bin/bash
find csgo/ -maxdepth 2 -type f -iname \( "srcds_*" \) -exec chmod 750 {} \;
find csgo/ -type f \( ! -iname "srcds_*" \) -exec chmod 640 {} \;
find csgo/ -type d -exec chmod 750 {} \;
-------- Original-Nachricht --------
> Datum: Mon, 27 Aug 2012 15:10:14 -0700 (PDT)
> Von: Mart-Jan Reeuwijk <[email protected]>
> An: Half-Life dedicated Linux server mailing list
> <[email protected]>
> Betreff: Re: [hlds_linux] steamCMD / CS:GO file permissions
> Tbh, I dont think valve is setting rights with it, and if they are, I
> wouldn't want them to.
>
> Once you have the structure figured out, and what files need what access,
> its easy to script it in bash or w/e.
>
>
> >________________________________
> > From: "Michael Koeberl <Giga-Hosting.biz>"
> <[email protected]>
> >To: Half-Life dedicated Linux server mailing list
> <[email protected]>
> >Sent: Monday, 27 August 2012, 22:26
> >Subject: [hlds_linux] steamCMD / CS:GO file permissions
> >
> >Hello,
> >
> >when I'm downloading a full fresh copy of the CS:GO dedicated server (
> 740 ) all my file permissions will get set to 700, isn't that a bit
> 'strange'?
> >
> >First of all I definitely would prefer to only have execute rights on
> files that need to have them (not on *.mp3, *.cfg and all the other files).
> >
> >Second thing is, why are groups rights removed? I think many of us
> (hosters) are using symlinked setups for their servers, using this we
> currently
> need to manually switch the rights of every file to 640 or 750 if needed.
> >
> >So right now, I would just prefer if you (Valve / Hidden Path) just fix
> the access rights to proper user and group rights for each file (and maybe
> folder). Also, this should be easy enough to just get fixed in one of the
> next updates.
> >
> >What do you think about it? (Even if this is maybe not the correct list
> for this [e.g. I should use the Hidden Path forum?] it would be good to have
> some response on this here to forward.
> >
> >Greetings
> >Michael
> >
> >_______________________________________________
> >To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> >https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux
> >
> >
> >
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux