Quote:>I'm new to Linux, and would like to have the answer to the following
>questions :
these are basic questions that deserve something of an answer. i won't promise
my answers are the best or definitive, but they should point you in the right
direction.
Quote:>How do I :
>1) delete an user??
i recall a utility to add users but i am unable to locate one via man anymore.
i thought there was a companion program to delete users but that seems to not
exist (hence your question). what i do is track down all instances of the
user's login name and delete that entry (or piece) and then remove the home
directory. start off in /etc. for this example we will delete my net surfer
account.
% cd /etc
% find . -type f -exec grep -il surfer {} \;
./group
./passwd
./aliases
./aliases.db
./passwd.OLD
%
we don't need to worry about aliases.db as that will be recreated (i run
sendmail hence this file will be recreated) and passwd.OLD is a relic.
now edit the remaining list (group, passwd, aliases) to remove the user.
since i run gid that correspond to the uid, i will delete the line that
contains the base reference for the user, as well as any additional occurances
of the sid. this may or may not remove an entire line. for examples:
1) % grep surfer group
ppp::20:ppp,surfer
surfer::308:surfer
so we need to delete the entire second line but only the surfer reference in
the first line (don't forget the ',').
2) % grep surfer aliases
surfer: /dev/null
might as well delete the entire line here unless you want to point someone else
to /dev/null. then just change the sid. (and yes, any replies to me do go to
/dev/null. this is my web surfer account and i don't take email under it.)
after you modify this file you may need to rerun newaliases to rebuild the
aliases.db file.
3) % grep surfer passwd
surfer:*:513:308:web surfer:/home/gallows/surfer:/bin/bash
this entire line should be deleted but not yet.
first, delete the home directory. do this with:
rm -r /home/gallows/surfer
that should remove the user from your system. (note that my machine name is
gallows so i have that covered in the /home filesystem. your system may be
different). once you are sure you have delete the above references to the sid,
then you can remove the passwd entry. after you have done this, if you are
running NIS you will need to change dir to /var/yp and run make in this dir.
but only if you are running NIS. if you aren't running NIS then don't worry.
you should be done.
Quote:>2) set up my printer??
best you look at the printer faq for this one.
Quote:>3) access my CDROM from Linux??
provided you have cdrom support compiled into the kernel (make sure you have
the correct type of cdrom, either scsi or (e)ide) you should be able to put
an entry similar to the following in your /etc/fstab file (or whatever the
equivalent is under your type of linux)
/dev/scd0 /cdrom iso9660 user,noauto,ro,exec
and then anyone can mount and umount the cdrom. you may need to modify the
device name /dev/scd0 to something else like /dev/hd?0.
Quote:>4) set up Linux such that it will connect to the LAN that I'm connected with
> (Network card and IP address have been specified, and how do I access the
> network files and data??)
i suspect you want to make sure your linux box is in the appropriate entries
on the remote machine, that the remote machine is exporting the info you need,
and that you have the correct mount entry in the /etc/fstab. also, you may
need to modify access for a remote machine. look for info on the rhost file
(and the r commands, rdist, rlogin, rsh) and read the documentation....
Quote:>5) set up my sound card??
your best bet is to consult the tech papers in the distro of the kernel.
Quote:>If u r able to give me answers or suggestions to the following questions,
>please reply to me.
best of luck. i read this group so followups are welcome. as i said before,
this is not etched in concrete. you may want to think about some of what is
writen above. especially since i am falling asleep. goodnight! and i hope
this puts you on the right path.
--
this account sends incoming mail to /dev/null.
followups to newsgroups only please! thanks!