White Cuban Posted November 12, 2008 Author Share Posted November 12, 2008 ugh, i did it, the instructions were vague, btw, version is 6.2, freebsd-update fetch doesn't find anything, but i understand theres nothing major, so they don't wanna upgrade, can you give me a full command? Link to comment Share on other sites More sharing options...
Lechio Posted November 12, 2008 Share Posted November 12, 2008 Add a user named "TheUsernameGoesHere" with the login shell "/bin/bash" and home folder located in "/home/TheUsernamesHomeGoesHere". useradd TheUsernameGoesHere -s /bin/bash --home /home/TheUsernamesHomeGoesHere Delete the "TheUsernameGoesHere" password. passwd -d TheUsernameGoesHere login as "TheUsernameGoesHere". su TheUsernameGoesHere Ask the system who you are. At this point you should be "TheUsernameGoesHere". whoami Set a password. passwd Link to comment Share on other sites More sharing options...
White Cuban Posted November 12, 2008 Author Share Posted November 12, 2008 after passwd write the pass? Link to comment Share on other sites More sharing options...
Lechio Posted November 12, 2008 Share Posted November 12, 2008 (edited) after passwd write the pass? Type "passwd", then it will ask you for the password. EDIT: Hey don't forget to create the "/home/TheUsernamesHomeGoesHere" folder. Edited November 12, 2008 by Lechio Link to comment Share on other sites More sharing options...
White Cuban Posted November 12, 2008 Author Share Posted November 12, 2008 how/why? also,why should i use bash instead? and where can i find places to learn its syntax (im assuming bash isn't the usual shell there, pretty sure its csh or tcsh.) Link to comment Share on other sites More sharing options...
Lechio Posted November 12, 2008 Share Posted November 12, 2008 (edited) how/why? The user should have a home directory so that it's configuration/personal files has a place to reside on. It's optional but recommended.also,why should i use bash instead? and where can i find places to learn its syntax (im assuming bash isn't the usual shell there, pretty sure its csh or tcsh.) Choose anyone you like, just giving bash as an example. Know that bash is very common, hence more easy to learn as more documentation will be available online. Also most of the things don't depend on the shell you are using.Google Edited April 5, 2014 by Haggis Link to comment Share on other sites More sharing options...
White Cuban Posted November 13, 2008 Author Share Posted November 13, 2008 i got remote SSH working, and had SFTP working with filezilla in school, when i got home, SSH was working, SFTP didn't,tryed multiple clients, tons of stuff it does the command open "The Ip"22. then nothing back from server. ftp doesn't work, the guy (last admin)bricked it quite well, anyone got an idea whats going on? i tryed winscp too, didn't work. also, can i change shell after the user already exists? Link to comment Share on other sites More sharing options...
Lechio Posted November 13, 2008 Share Posted November 13, 2008 i got remote SSH working, and had SFTP working with filezilla in school, when i got home, SSH was working, SFTP didn't,tryed multiple clients, tons of stuff If it worked before in school maybe there is some kind of rule that only allows it to be accessed from inside that network, or the external firewall from your school is blocking that port. Yes, the shell can be changed. Link to comment Share on other sites More sharing options...
White Cuban Posted November 14, 2008 Author Share Posted November 14, 2008 sigh, i got the root user, i told them i can't do this with just my user, sent the temp admin a mail, she gave me back. i cant access the admin account by SSH, it says access denied, pretty sure she didn't mastike the password. sigh, im going insane. and its not blocking the port, its a fact that SSH works, SFTP is same port, something weird is going on, and i cant send "Code 11"(Reboot) from remote, since i'm not UID 0, and i can't login into the admin. this is seriously ****ing me off Link to comment Share on other sites More sharing options...
Lechio Posted November 14, 2008 Share Posted November 14, 2008 Like it was said before, install the sudo tool and use it with the normal account you created. That was the sole purpose of creating that user account. Rebooting the server will be as simple as "sudo reboot". May I ask why you are rebooting the system? Also, you cannot be uploading files to anywhere, if your user doesn't have a home directory you don't have write permissions in any directory. Link to comment Share on other sites More sharing options...
White Cuban Posted November 14, 2008 Author Share Posted November 14, 2008 when i try to do su anything it says: Su: Sorry is that sudo? if not, how do i install it? Link to comment Share on other sites More sharing options...
markwolfe Veteran Posted November 14, 2008 Veteran Share Posted November 14, 2008 "su" is switch user. If you don't specify a user, it defaults to prompt for root. Did you mean to "sudo" and item? Or switch user to root or such? Link to comment Share on other sites More sharing options...
p858snake Posted November 15, 2008 Share Posted November 15, 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. the school doesn't agree for me to just reformat it and install some easyer distro.(1) the machine wasen't touched since like august, i think it probally needs an update(2) i found a mysql database with everything about anyone in school, SSIN's, phones, where they live, classes, teachers.(3)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.(4) 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. 1. Why are they against the reformat? if its because of downtime and such, volunteer to do it on a weekend when no one is around. 2. Yes... i have the FreeBSD 7.0 cd's and i know that they are outdated 3. Is this a publicly accessible web server? 4. So who is "they" when your running the servers? Also discuss with the issues of running a server you didn't setup, eg: its harder to know whats installed, user accounts, security issues caused by outdated installs ect. Link to comment Share on other sites More sharing options...
Recommended Posts