Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
First I'm having some issues with mounting my floppy and dvd/cdrw combo drive. I am running a fresh install of Mandrake 9.2 I have removed the references to supermount from /etc/fstab due to Konquerer freezing everytime I tried to view the /mnt directory. Now I'm having issues getting the drives to mount. what should I put in my //etc/fstab to make them work? This is what I have in there right now:
And now my second question. This came up when I started having fun with mount. I am trying to make my login account able to do almost everything root can. I keep running into things that I can't do even though I've got my permissions and privlidges set as close to root as I can. For example after I removed the supermount options I tried to go and manually mount the cd drive but I got this error:
Could not mount device.
The reported error was:
mount: must be superuser to use mount
Yes they were originally set up for supermount, I just went in with a text editor and removed the word supermount from each line because I couldn't get supermount to work to have it disable itself.
Will this change let me mount and unmount as a regular user? Also will this try to automatically mount the cd and floppy on boot-up? if so how do I make it not auto-mount the cd and floppy?
Originally posted by hussar This is what I have in my /etc/fstab:
I have never seen the format that your /etc/fstab is in, but I have also never used supermount. The man pages are, of course, your best friend. Try 'man fstab'.
To be able to mount the cdrom as a user, put the option "user" in the cdrom's line in /etc/fstab.
If you are trying to make your regular user account be able to do a lot of the things root can do, you should check out the 'su' command.
Mandrake 9.2 automatically uses supermount so I unfortunately didn't get the choice of not using it. I did try 'man fstab' but I couldn't find the information on how to set up a dvd/cd-rw combo drive. Will your settings work for a combo drive? Also I noticed you had 'users' in your cd settings line, will this let any user mount and unmount or do I have to use 'user'?
With the 'su' command will that last a whole session or just while I have the terminal instance that I typed it in open. Also I was hoping to set up a power user account that i could do most of my maintenance/install work with without having to logout and log root in every time I want to install a program.
Originally posted by dalek Why not use supermount? It works pretty well anyway. I do hate having to close the window to get it to eject though.
I don't want to use supermount because Konquerer has issues with my /mnt directory when I have supermount enabled. It may just be because I am using KDE but right now I'm still too much of a newbie to get GNOME installed.
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
What I normally do is login in on my user account, and then if I want to do something that requires root privileges I will enter the command 'su' in the console or an xterm and provide the root password. I will do what I need to do, and when I am finished, I type 'exit' which returns me to my normal permissions. You don't need to login and logout every time. It's pretty handy.
I would not recommend becoming root and then just using the machine. If you make a mistake as root, it is possible to completely disable your system. I learned that the hard way. I was deleting a bunch of files while I had root privileges, and I accidentally deleted my entire /etc directory. All those configuration files gone. Had to reinstall. Ugly.
The user option will allow users to mount the drive. The users option will let users mount the drive, and it will also let a user other than the one that mounted the drive unmount the drive.
For setting up the combo drive, I recommend making a link from /dev/cdrom to /dev/hdc and from /dev/dvd to /dev/hdc. Then when configuring apps that look for either the cdrom/dvd drive you can enter either /dev/cdrom or /dev/dvd. Actually, it would surprise me if those links weren't already there. What do you get when you enter 'ls -l /dev/cdrom' or 'ls -l /dev/dvd'?
Are you trying to play individual files on the dvd, or are you trying to play a pre-recorded commercial dvd?
Originally posted by dalek If you don't mind, what does it do wrong? Just curious.
With supermount enabled every time I try to view the /mnt directory Konquerer, or any other program I happen to be using, freezes.
I'm still having issues with my user permissions though. When I try to use 'su' this is what I get:
[aerlock@localhost etc]$ su
su: cannot set groups: Operation not permitted
I still wnat to know how I can set up an account to be a "power user" account. Something with enough permissions to install/uninstall programs, change settings in files like fstab, and anything else along those lines. I don't need permissions that will let me delete system files/directories.
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
The problem with su might be that it is not setuid root. Enter the command 'ls -l /bin/su' and you should see something like this:
-rws--x--x 1 root bin 32496 Jun 24 01:40 /bin/su
The "s" after the "-rw" indicates that su is setuid to its user, in this case root. This means that when 'su' is used, it has the permissions of its user. If your su does not have the "s" and you see an "x" in that spot instead, then as root enter the command 'chmod u+s /bin/su'. Try to su after that and see if it works for you.
One way to create "power users" is to use su, /etc/suauth and /etc/sudoers. Take look at the man pages for suath and sudoers, and they will show you how to set these files up. Using these files you can control who can su and which password they need to enter when they su. You can also define specific commands they can use.