About: Setgid   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : dbkwik.org associated with source dataset(s)

The solution is to give write access for the playground not to the users, but to a special Unix group such as games. Then chown the executable to user root, group games and set the setgid bit. When the game starts, the system will set the effective group id to games and NetHack will have the priveleges necessary to write to the playground. This sort of arrangement dates back to Hack, which needed this setup for the same reasons as NetHack does. Here is Hack 1.0.3 upon Kernigh's OpenBSD system:

AttributesValues
rdfs:label
  • Setgid
rdfs:comment
  • The solution is to give write access for the playground not to the users, but to a special Unix group such as games. Then chown the executable to user root, group games and set the setgid bit. When the game starts, the system will set the effective group id to games and NetHack will have the priveleges necessary to write to the playground. This sort of arrangement dates back to Hack, which needed this setup for the same reasons as NetHack does. Here is Hack 1.0.3 upon Kernigh's OpenBSD system:
dcterms:subject
dbkwik:nethack/pro...iPageUsesTemplate
abstract
  • The solution is to give write access for the playground not to the users, but to a special Unix group such as games. Then chown the executable to user root, group games and set the setgid bit. When the game starts, the system will set the effective group id to games and NetHack will have the priveleges necessary to write to the playground. This sort of arrangement dates back to Hack, which needed this setup for the same reasons as NetHack does. Here is Hack 1.0.3 upon Kernigh's OpenBSD system: $ ls -l /usr/games/hack -r-xr-sr-x 1 root games 250568 Mar 1 2006 /usr/games/hack $ ls -ld /var/games/hackdir drwxrwxr-x 3 root games 512 Jul 18 15:50 /var/games/hackdir (Perhaps someone should edit the page and provide this info for their NetHack installation. Note that the nethack command is a shell script and that the setgid executable might be in the playground somewhere.) The "s" in "-r-xr-sr-x" indicates that setgid is set. The group of the setgid executable (here /usr/games/hack) and that of the playground (here /var/games/hackdir) must match.
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software