Trying to Edit monkey FilesForum: Apps Topic: Trying to Edit monkey Files started by: Kastr0 Posted by Kastr0 on Jan. 15 2004,18:36
Hi Everyone Im A Newb here -- I was trying to edit the conf files for monkey which are in /root/monkey-0.6.3/conf/So i figured i needed to be in root so i did the "sudo su" command - opened up Nedit open the file and its read only -- i cant edit it---- can anyone help Please --- Files that i was trying to edit where /root/monkey-0.6.3/conf/monkey.conf --/root/monkey-0.6.3/htdocs/all Posted by CappyCaffeine on Jan. 15 2004,19:19
which version of DSL are your running?if the file appears read only, you could type (as root): chmod 666 /root/monkey-0.6.3/conf/monkey.conf to make it editable. (don't eat it! ) then try nedit. Cappy Posted by Kastr0 on Jan. 15 2004,20:11
THX Cappy --- The version that im running is pub/Linux/distributions/damnsmall/damnsmall-0.5_download_this_one.iso is that one ,, LOL-----------i went ahead and chmod the files and it works - what would be the chmod # to put it back to read only? THX Posted by Modrak on Jan. 17 2004,20:59
Just use "+" -----NUMBERS----- 1st is the owner 2nd is group 3rd is everyone So please use #chmod 444 Posted by BillH on April 02 2004,02:12
Sorry if this is obvious to people with more experience, but is there any good reason that /opt/monkey/htdocs and /opt/monkey/htdocs/index.html belong to user root and not to user damnsmall?Using DSL 0.6.2 Posted by CappyCaffeine on April 02 2004,04:34
Umm.. none that I can think of.. unless it has something to do with the server being started from bootlocal.sh, i.e. before a user logs on to the system.I have it set up this way, that way if there is a power outage, or some goofball reboots thinking that is the way to get my linux only box to boot into windows is by hitting reset like all the other boxes out there, it will automatically restart the web server. (samba is is run as a daemon) Cappy Posted by BillH on April 02 2004,05:44
Right, but that works whoever the owner of the docs directory is. (I know, Kastr0 was talking about monkey.conf and I'm talking docs here.) What I'm getting at is that there is a chown solution as well as the chmod solution for the documents, but I'm not sure if there is any reason to prefer one over the other. As it stands now, either a chmod or a chown has to happen before editing. All things being equal, it might make sense to change the ownership of /opt/monkey/htdocs and /opt/monkey/htdocs/index.html in the next version. |