White Cuban Posted November 11, 2008 Share Posted November 11, 2008 Hello Community, somehow i got the job of running a dumped server (which runs a very pricey xeon, not sure which one) the guy who ran it, quit the school, and the server got left aloone, its running FreeBSD 5.0.27. it only has terminal, no GUI, i need some sources how to run and configure apache(its already up, but i need to create another ftp user) and just frankly, control it. i know a bit with linux, but every command i tried doesn't seem to work there. i dont even know how to acsess dir's in it. the school doesn't agree for me to just reformat it and install some easyer distro. nobody there can handle the machine, its just sitting there. please help me with sources/learning, and running, using apache, and stuff. thanks. the machine wasen't touched since like august, i think it probally needs an update, How do i do that? Link to comment Share on other sites More sharing options...
ToneKnee Posted November 11, 2008 Share Posted November 11, 2008 Did you get root access by any chance? You're going to be in trouble otherwise. Link to comment Share on other sites More sharing options...
+Frank B. Subscriber² Posted November 11, 2008 Subscriber² Share Posted November 11, 2008 Have you looked at the FreeBSD Handbook yet? You should be able to find some answers there. Link to comment Share on other sites More sharing options...
darren89 Posted November 11, 2008 Share Posted November 11, 2008 Did you get root access by any chance? You're going to be in trouble otherwise. yes. try 2 add "sudo" to the command. without the "" marks. ;) Link to comment Share on other sites More sharing options...
+Frank B. Subscriber² Posted November 11, 2008 Subscriber² Share Posted November 11, 2008 yes. try 2 add "sudo" to the command. without the "" marks. ;) Ugh. Prefixing commands with sudo is unnecessary when you have a proper root account. Hint: Not all UNIXoid operating systems work like Ubuntu Linux, which introduced the retarded method of disabling the root account by default and forcing you to use sudo instead for all tasks which need root permissions. Link to comment Share on other sites More sharing options...
White Cuban Posted November 11, 2008 Author Share Posted November 11, 2008 Have you looked at the FreeBSD Handbook yet? You should be able to find some answers there. i got terminal acsess with root there to whoever asked. but they need to look over my shoulder. i can't find out which apache is running. because when i try to get a list of files in the dir the apache dir should be in, it says too many arguments, and if im not mastiken apache dirs are named by versions. etc nowdays version dir is /apache22. which is kinda dumb, i have no idea what version it is. also, for some reason the command vi (for the editor) seems to make it go stuck. Link to comment Share on other sites More sharing options...
+Frank B. Subscriber² Posted November 11, 2008 Subscriber² Share Posted November 11, 2008 To find out the Apache version, type user@host $ httpd -v vi has two modes: Insert mode and command mode. To get into insert mode, press Esc, then i. It should say --- INSERT --- at the bottom of the window then. To get into the command mode, press Esc, then : (colon sign). To leave vi enter command mode, then type q! Hope to have helped. Link to comment Share on other sites More sharing options...
White Cuban Posted November 11, 2008 Author Share Posted November 11, 2008 (edited) it seems to be up to date, i tried updating, it said didn't find. for some reason, vi makes it freeze. ee is the notepad of freebsd im using it vi /some dir. it freezes. i found its apache22. how can i create more users? also, i need to create an ftp user, i can't figure out which file i need to change and how. is it ftpusers? ftpd.conf? please let me know which, and how to create another user. Edited November 11, 2008 by Matan Mates Link to comment Share on other sites More sharing options...
White Cuban Posted November 11, 2008 Author Share Posted November 11, 2008 For some reason i can't edit my last post. i saw something very cool which i would like to do, how can i send remote commands from my home computer to the server? i can acsess terminal tomorrow, so tell me how if you can, and how it works, what do i need to do over there and on my computer? this would solve all my issues, since i will have free Access, also, what ports it uses? Link to comment Share on other sites More sharing options...
markwolfe Veteran Posted November 11, 2008 Veteran Share Posted November 11, 2008 Remote login? Sounds like you might want to ssh into the machine? Do you know if you have ssh running as a daemon/service on that server? Link to comment Share on other sites More sharing options...
White Cuban Posted November 11, 2008 Author Share Posted November 11, 2008 i already researched bit since last post im trying to use putty. i know the ip, i know the user's root, but i dunno pass. putty seems to connect, it asks me login, i noticed, every login i say, it STILL asks for a password. if the prompt window show up, asking me for pass (its not prompt, its terminal) does it mean im connected?. edit: after i enter ip, putty does something then terminal window shows up With Login>. i write any login. it says some line about keyboard thingy. then asks password(with no delay after keyboard, they appear same time). if the terminal shows up, it means it's working?(in theory?) also, if i create a new user from the computer itself, and restart, can i connect with it to FTP, SSH, considering its running? is it all connected? Link to comment Share on other sites More sharing options...
Lechio Posted November 11, 2008 Share Posted November 11, 2008 You need to know the root password to be able to administer the system. Creating a new user would work, but you need to give it administrative privileges (for instance include it in the sudo, if the system has that installed). Try to find the root password, you will need to know it if you want to be able to administer that system, it's something very important. Also try using nano as an editor, it's more simple to use. Link to comment Share on other sites More sharing options...
White Cuban Posted November 11, 2008 Author Share Posted November 11, 2008 getting access is not an issue, my query now is if i create a user account, i will be able to connect with that to ftp,ssh and all that with no configuring? FreeBSD doesn't use sudo, its not like ubuntu, it doesn't have GUI too, strict Command line. Link to comment Share on other sites More sharing options...
+Frank B. Subscriber² Posted November 11, 2008 Subscriber² Share Posted November 11, 2008 getting access is not an issue, my query now is if i create a user account, i will be able to connect with that to ftp,ssh and all that with no configuring?FreeBSD doesn't use sudo, its not like ubuntu, it doesn't have GUI too, strict Command line. Yes, you will be able to connect to the machine with another user account. The command to add a user is root@host # adduser More details about adding users to a FreeBSD system here. You can configure FreeBSD to come with a GUI by the way. Check the FreeBSD handbook (which I linked to above) section about installing software. Lastly, you say the machine runs FreeBSD 5.0 - which was released in January 2003. You might want to look into upgrading to the current stable release 7.0 if possible. Link to comment Share on other sites More sharing options...
Lechio Posted November 11, 2008 Share Posted November 11, 2008 You will be able to remotely login to that system if the system is configured to be able to do that. To have access to ftp you need to configure the ftp server that is running. FreeBSD doesn't use sudo, its not like ubuntu, it doesn't have GUI too, strict Command line. FreeBSD can use sudo too, if it has it installed. Yes, it's not a Linux distro but it has allot in common with those, it uses allot of the same software that is used in Linux. Link to comment Share on other sites More sharing options...
White Cuban Posted November 11, 2008 Author Share Posted November 11, 2008 theres that command, i think its freebsd-update, then i used fetch, it checked mirrors, said nothing new, i think i was wrong with 5.0 doesn't make sense, thats what i saw on the PHPMYADMIN page. also something off topic. i found a mysql database with everything about anyone in school, SSIN's, phones, where they live, classes, teachers. should alert them :p. i saw that thing about X11, the server is not mine, again, such radical changes might not be wanted, for some reason, the guys there, don't want any GUI changes. under the surface anything's fine. its running apache also, i just cant figure how the damn to configure it, but that doesn't matter too much, thats not my main worry. also, how can i stop logging of everything done for a session? (till restart) Link to comment Share on other sites More sharing options...
Lechio Posted November 11, 2008 Share Posted November 11, 2008 Everything you typed on the terminal is now in "~/.bash_history". You can delete that file if you want, but the admin can catch you if he/she wants to... Be wise. Link to comment Share on other sites More sharing options...
White Cuban Posted November 11, 2008 Author Share Posted November 11, 2008 Everything you typed on the terminal is now in "~/.bash_history". You can delete that file if you want, but the admin can catch you if he/she wants to... Be wise. there is no admin, thats why im here, the guy who took care of all systems, just quit and moved far, everything is kinda screwed, and its starting to fall apart, he quit last year, and problems are popping up all over the place (thanks to cron jobs updating everything :)) also what does ~ stand for. Link to comment Share on other sites More sharing options...
Lechio Posted November 11, 2008 Share Posted November 11, 2008 A system with no admin... Chaos. "~" is a 'shortcut' for the user home. Type "cd ~", and it will change the directory to (in this case) "/root/". You can check the directory where you are by typing "pwd". Link to comment Share on other sites More sharing options...
White Cuban Posted November 11, 2008 Author Share Posted November 11, 2008 okay ty for all the help, so, can you quickly give me a command, which will= create a new user, with password (just write %pass% and %user% where i should fill in stuff) , the guides all i found are kind of vague, i just need something to create a user. Link to comment Share on other sites More sharing options...
Lechio Posted November 11, 2008 Share Posted November 11, 2008 Type "man adduser". Link to comment Share on other sites More sharing options...
Glowstick Posted November 11, 2008 Share Posted November 11, 2008 cd without argument changes to your home directory, no tilde needed. Link to comment Share on other sites More sharing options...
Lechio Posted November 11, 2008 Share Posted November 11, 2008 cd without argument changes to your home directory, no tilde needed. But saying that, it wouldn't explain what tilde means, would it? :) Link to comment Share on other sites More sharing options...
White Cuban Posted November 12, 2008 Author Share Posted November 12, 2008 man adduser and it will start asking me for the details? Link to comment Share on other sites More sharing options...
Budious Posted November 12, 2008 Share Posted November 12, 2008 man adduser and it will start asking me for the details? The man command will show you the arguments and help file for the adduser command. Run only the adduser command to begin the interactive process of setting up the user. Tom Servo: classy signature pic :D Link to comment Share on other sites More sharing options...
Recommended Posts