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.
hello, i am trying to figgure out how to mount one of my hard drive partitions so that it automatically mounts durring the boot process, i have done that before using the fstab file, but then only root can write to/unmount the drive, i was hopping i could let one more user (my account, not everyone) write to the drive and unmount/remount it.
how do i do that?
[Fedora Core 1]
Perhaps you could create a script and place it in the rc3.d and rc5.d directories. That or make an alias and place it in /etc/bashrc then create a symbolic link inside the rc3.d and rc5.d directories to the alias.
what is all this rc.d stuff, have any links explaining it?
is there such thing as a basic login script for gnome that is mean for users to add whatever they want to that will run whenever the user logs in? what about a logout script that will automatically run on logout.
rc3.d are the files/services that are run when you enter runlevel 3 (the "init 3" command). This runlevel exits the gui (if currently in runlevel 5) and brings you to a command line only mode. I use this when I am not using the gui as I like to reserve memory for my web server.
rc5.d are the files/services that are run when you enter runlevel 5 (the "init 5" command). This runlevel starts the gui interface and is the default runlevel unless you change it.
As far as login and logout scripts I have no idea how to set that up on a per user basis. But, you could probably do something using .bashrc as that is, as I understand it, based on each user. Could someone else please explain further.
that allows me to mount the drive by right clicking the desktop (gnome), opening up the drives sub menu and clicking on the apropreate entry to load that drive (without root permissions), but if i try to run mount in bash(and therefore my login script), i get "only root can do this" and it wont work
[my login script is currently run through some entries i added to .profile_bash]
With thanks to whoever it was who answered my similar question on this board some time ago this is the line in my fstab file that allows me to do just what you wanted. Note : All users can see the drive (a Win98 partition in my case - hence vfat) but only I (mark in this case) and root can wite to the drive...
Hope this is what you want...
/dev/hda1 /mnt/msdos vfat users,rw,uid=mark 0 2
obviously you change the mount-point to wherever yours is mounted, change the type if necessary and of course change the "uid=..." to your user name...