path: root/doc/forum/Propellor_without_superuser_privileges
diff options
authorJoey Hess2014-12-26 15:32:00 -0400
committerJoey Hess2014-12-26 15:32:00 -0400
commit207f43e95d708c9ea462bacca60f86c49df5f599 (patch)
tree428a0bbf7fed6982adf8e953af0960311667ac51 /doc/forum/Propellor_without_superuser_privileges
parent493d61d2289538069e8a5739195d01b04b3251ed (diff)
Diffstat (limited to 'doc/forum/Propellor_without_superuser_privileges')
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/forum/Propellor_without_superuser_privileges/comment_1_021ecbb1b8bd7e26776b49ec75e90d0c._comment b/doc/forum/Propellor_without_superuser_privileges/comment_1_021ecbb1b8bd7e26776b49ec75e90d0c._comment
new file mode 100644
index 00000000..1a38ef94
--- /dev/null
+++ b/doc/forum/Propellor_without_superuser_privileges/comment_1_021ecbb1b8bd7e26776b49ec75e90d0c._comment
@@ -0,0 +1,26 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 1"""
+ date="2014-12-26T19:26:00Z"
+ content="""
+I think that the root assumptions are in basically 3 places:
+* Many Properties assume they're run as root, and will fail if they're not.
+ Probably not a problem in practice for most of them. It might be nice
+ to make a few, such as `User.hasSomePassword` work when run as a normal
+ user.
+* Propellor's self-deployment involves running apt-get to instal ghc,
+ etc. This could be modified to check if it's not root and do a local
+ user of ghc if necessary.
+* `localdir = "/usr/local" and this is used in various places by eg,
+ `--spin`. It is, however, entirely possible to run "./propellor" in
+ some other directory, which causes it to run in that directory
+ and ensure the properties of localhost. `--spin` could certianly be
+ taught to run in a user mode where it uses "~/.propellor/" instead of
+ `localdir`.
+I think that's all! I don't plan to try to add this feature myself, but
+will be happy to support anyone who wants to work on it.