| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 75326 | 2006-12-24 21:53:00 | Linux - Working without GUI is like losing right arm.. How do i ???????????? | personthingy (1670) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 509321 | 2006-12-24 21:53:00 | OK Here's the situation. My personal machine is Linux, infact i own no windows machines. With Bletch's help, i now have a server sitting in my house that serves as a gateway/firewall for me, and a web server for http://chatf1.pcresolutions.co.nz/ We both have root access to it, but without a GUI on the server, i'm lost. Life has just given me a well deserved kick up the **** and told me to start learning instead of being a lazy GUI only user. :) I can access the machine using fish://root@192.168.0.1/ and paste files in should i so choose, but the files belong to root, not the user, and i have no way of changing this. Is there a way using command line and SSH access to change the ownership of files? How do i add a new user? Change user password? How do i change apaches settings so /home/new-user-to-be/pub becomes the files served to someone who browses to www.something.net.nz rather than the default /home/chatf1/pub ? and most importantly, where's the best place to find out this sort of thing so i don't have to annoy people about it here all the time? :p |
personthingy (1670) | ||
| 509322 | 2006-12-24 22:10:00 | Google should help you with all those questions. but anyway: Using SSH: to add a new user (using debian) (as root) type "adduser [username]" and it will prompt you for all the details To change the user password: you just type passwd as that user (or as root type passwd [username]) To Change the owner of a file. type chown [username]:[groupname] [filename] (and the group name is often the same as the username) Apache Settings, that requires a bit of manual configuration file editing, i would recommend either following a howto, or getting someone else (bletch) to do it for you |
Dannz (1668) | ||
| 509323 | 2006-12-24 23:12:00 | Thanks DanielF, that lot worked a treat :) And your right, i will leave the apache configuring to Bletch. The mission is to learn this stuff without fixing what isn't already broken. |
personthingy (1670) | ||
| 509324 | 2006-12-25 20:38:00 | You could always: mv /home/chatf1/pub /home/chatf1/old_pub ln -s /home/new-user-to-be/pub /home/chatf1/pub Or: mv /home/chatf1/pub /home/chatf1/old_pub mkdir /home/chatf1/pub mount --bind /home/new-user-to-be/pub /home/chatf1/pub Take ya pick ;) I offer the second option, cause I know that when I was setting up an FTP server it didnt like honoring symlinks that could take you outta your chroot. Not too sure how happy apache would be, but I know its fine with symlinks inside of /var/www/localhost/htdocs/*** on my machines :) Then again, I use Gentoo ;) Cheers Chill. |
Chilling_Silence (9) | ||
| 509325 | 2006-12-25 21:12:00 | You could always: mv /home/chatf1/pub /home/chatf1/old_pub ln -s /home/new-user-to-be/pub /home/chatf1/pub Or: mv /home/chatf1/pub /home/chatf1/old_pub mkdir /home/chatf1/pub mount --bind /home/new-user-to-be/pub /home/chatf1/pub Take ya pick ;) Chill.Dat's scary! /home/chatf1 is one area i am NOT touching, apart from changing Xmas trees and removing the snow when too many people complain about the cold making their computers freeze! We got the revised CF1 running, and i dare not do anything to break it... That's Bletch's department. :D I'm just looking at getting it to do other things, like using it as a test server for a site i am to be building soon, and serving images, etc. All this entirely separate from CF1 O yeah... It's a debian machine, running only whats needed to allow it to run a web-server, amarok (remotely) and serve as the gateway/firewall for my private home network |
personthingy (1670) | ||
| 1 | |||||