LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2014, 08:57 PM   #1
kenderkenobi
LQ Newbie
 
Registered: Nov 2014
Location: Buffalo Area
Distribution: Gnome?
Posts: 3

Rep: Reputation: Disabled
Very Newb. New User Creation and Directory Backup


So I am extremely new to linux. So new, I decided to put an online "introductory" class into my load this semester.

I set up Gnome on a virtual machine on my home box.

And then found myself a bit disappointed. Not in linux but in the "Class".

I see linux more and more in the work place and seeing as I am a comp sci student I figured this would be a great extra class to take in order to familiarize myself with linux and working with terminal and such. The class has been a jumble of things I don't understand, the proctor for the class (I loathe to call him professor) is almost non-existent, and at this point aside from extremely basic terminal commands (ls cd) and some work in vi I don't really know much of anything.

His last homework was for us to set up an ftp server and Samba. It was totally out of the blue and in the end I couldn't do either successfully.

This home has us doing the following:
Quote:
Creating a new user account and backup up a Home Directory - Using the “useradd” command, create a new user called “testuser”. Set the accounts “comments” to “Test MFC 217 User Account”. “Tail” your password file so that the new user account is displayed. “Pipe” the output to a file called “newusers.txt”. Login as that “testuser”. Using the “touch” command, create an empty file in that users home directory called “newuser_home.txt”. Using the “tar” command, backup that “testusers” home directory. Email me the “newusers.txt” file.
I'm going to just be honest. I don't know where this comes and while I'm sure he wants us to do these commands in terminal I'm not sure where to go.

I am sorry, I hate asking like this, and I understand if no one is willing to throw me a bone, but this class has been nothing it was sold as and nothing I was hoping it would be. I was hoping for proficiency in linux, but its been a birdshot of disjointed topics.

Thank you for anyone who lends me a hand. I hope I can learn something from the folks here about switching to linux and getting used to its environment.
 
Old 11-18-2014, 02:54 PM   #2
shelledroot
LQ Newbie
 
Registered: Nov 2014
Posts: 3

Rep: Reputation: Disabled
Well do this once you get into the terminal (asumming you can do that otherwise i might have misread that you did go into it atleast once before)
and use these commands:
*ROOT ACCESS DETECTED*
su (log in as root default will be root on most but to specify it use: su root)
useradd -u 217 -g 217 testuser Test MFC 217 User Account ( Creates an user with userID of 217 in groupID 217 with comment of "Test MFC 217 User Account")
tail /etc/passwd | grep testuser > newusers.txt (tails the password document and looks for testuser then outputs to newusers.txt)
su testuser (log in as testuser shouldn't require an password if you want one use: passwd testuser)
/ROOT ACCESS NO LONGER APPLIES/
touch /home/newuser_home.txt (creates an file called newuser_home.txt)
tar -xvf /home/ home.tar > outputfile.txt (creates an tarball which is the same as an zip or rar and then outputs file in the document to outputfile.txt)




Disclaimer: Some people prefer to use the command sudo instead of actually logging into root use at your own risk!

Also excuse me for typo's and I might have made an typo also if you get stuck somewhere I could fire up an Linuxbox to try it myself but haven't done it myself.(doing some homework on M$ Window$ at the moment)
Cheers,
Shelledroot

Last edited by shelledroot; 11-18-2014 at 03:03 PM.
 
Old 11-18-2014, 02:56 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,528

Rep: Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495Reputation: 2495
Gnome is not a Linux operating system but is simply a Desktop environment. You can get some info on it at the wikepedia link below:

http://en.wikipedia.org/wiki/GNOME

In most cases when you boot your Linux operating system, you will see the name of the distribution in large fonts on boot. There are literally thousands of sites you can find with a simple search online on how to use the "useradd" command in Linux, first link below.

http://www.tecmint.com/add-users-in-linux/

How to set up and configure Samba. The link below is for the Ubuntu Linux distribution. You would be best off googling it for the specific distribution you are using.

https://help.ubuntu.com/lts/servergu...ileserver.html

You are likely to get a number of responses asking "what have you done" because the rules here don't provided for doing other homework but do allow for helping people who have made an effort. If you are having a specific error or a specific problem you can do an online search as in almost any case there will be a site or sites with something to offer.

If the class is as bad as you say, ask for a refund of your tuition.
 
Old 11-19-2014, 02:43 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
since waht you're describing seems command line related, and you seem to be comfortable with that, i think you should choose a different distro, maybe even one that does not have a graphical desktop at all (this can always be installed later on, if need be).

fwiw, archlinux is great and has an even greater wiki that is often refered to even when not using archlinux.
try this:
https://wiki.archlinux.org/index.php..._adding_a_user
 
Old 11-19-2014, 02:48 AM   #5
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

you seem to have posted almost the same question in three different places. Please don't post multiple threads on the same topic.

Evo2.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RedHat Newb-File creation jjones Linux - Newbie 3 10-17-2013 03:59 AM
Automate user creation with Ubuntu PHP to Mac OS X Open Directory kngcloudis Linux - Server 0 10-05-2013 02:47 AM
User Creation for a already created directory teckins Linux - Software 3 06-29-2012 08:29 AM
Default creation time user home directory permissions. prabhatsoni Linux - Software 3 01-08-2011 10:32 AM
Automatic AD user directory creation/mapping HalJordan Fedora 5 02-19-2005 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration