943,902 Members | Top Members by Rank

Ad:
Jul 2nd, 2009
0

Help setup a few basic things on my unix box please?

Expand Post »
Can someone help me accomplish the following on my unix box? Can someone walk me through step by step for each task? I'm connecting to a machine using UBUNTU with SSH with admin priviledges.

1. Create an account for myself as administrator

2) create one additional regular user account which does not have sudo
privileges, it is just regular user.
a) create a login name
b) establish appropriate group(s)
c) create the home directory
d) create the login shell
e) establish a pass word for the user
f) set an appropriate PATH
g) place appropriate files in the home directory

3) Identify the version of the OS and relative data.

4) Identify the nature of the hardware providing relevant
information.

5) Use cron to execute a particular program at 10 PM every
Tuesday.

6) Write a script to identify current users on the system with
an indication of the actions they are performing. Identify only users.

7) install xpdf
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ViLeNT is offline Offline
19 posts
since Apr 2009
Jul 2nd, 2009
0

Re: Help setup a few basic things on my unix box please?

im using Linux stubuntu3 2.6.28-13-server #44-Ubuntu SMP Tue Jun 2 08:40:28 UTC 2009 x86_64 GNU/Linux
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ViLeNT is offline Offline
19 posts
since Apr 2009
Jul 3rd, 2009
0

Re: Help setup a few basic things on my unix box please?

LOL. This sounds more like a homework project than it sounds like a UNIX install, but I'll see what I can do to get you on the right path.

Typically, there's no "administrator" accounts on UNIX. Some "old guy" will probably start arguing with me about the wheel group, but essentially you're either root or your not. So, if you have the root password -- congratulations, you're an administrator :-)

As for setting up an account, you can pretty much just use useradd (I think it might be adduser on some systems, just to screw with dyslexics). Something like this should work:
bash Syntax (Toggle Plain Text)
  1. useradd -c "First Last" -m username

This will create a user with the comment of "First Last" (usually their name) and a username of 'username'. The -m causes it to create the home directory if it does not already exist.

As for the system type, `uname -a` as you have already discovered will get you well on your way. I don't know if it works on Ubuntu or not, but I've always been a fan of `cat /etc/issue` for determining the install OS. It's actually the file that gets displayed when you connect via telnet (slowly going the way of gopher), but it usually contains the OS distro version.

To help with the rest of the commands, try something like this:
bash Syntax (Toggle Plain Text)
  1. man cron
  2. man 5 crontab
  3. man passwd
  4. man w
  5. man 5 group
  6.  
  7. # (and if that doesn't help)
  8. man man
  9.  

That should at least get you on the right path (no pun intended).
</help with a flair of sarcasm>

-geis
Reputation Points: 20
Solved Threads: 2
Newbie Poster
bgeisel1 is offline Offline
15 posts
since Mar 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Kernel and Hardware Setup Forum Timeline: Why Kernel is having so many main function.
Next Thread in Linux Kernel and Hardware Setup Forum Timeline: Mount point filling





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC