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.
I have read on the forums and google and ever solution I have thought would work on my problem doesn't.
I am trying to mount a second hard drive that is fat 32 into /fat-c. i want to use it for extra ftp storage and have a "binded" mount into the user directories for it. I can get the bind to work fine, but only root can write to the drive. I want to allow all users to be able to read, write, execute. EVERY thing i am trying in my fstab file is not working. I make a change to it and the permisions dont change or nothing. this is what the line looks like currently.
you could change the line to
/dev/hdb1 /fat-c vfat user,rw,owner,exec,group,dev,suid,umask=777,rw 1 0
Not very safe but you then
#ls -l /fat-c
to check what the permissions are set to.
The line was mostly copied and I copied the umask incorrectly.
Last edited by Michael Johnson; 07-10-2005 at 04:47 AM.
one more thing that i forgot to ask... is there a way to get the mount that i created in my users name instead of root? that way if they copied a file out of it, into there directory it would be in there name and not roots?
/home/jim/storage/ is my mount and it looks like this
The following line is all you should need in your /etc/fstab.
/dev/hdb1 /fat-c vfat users,rw,exec,umask=000 1 0
Why do you need it mounted in 2 separate locations.
If you want mounted in "/home/jim/storage" then use this line
/dev/hdb1 /home/jim/storage vfat users,rw,exec,umask=000 1 0
then use this to mount it
if you add "auto" to your parameters then it should be mounted at bootup.
If you add "noauto" then you can mount it manually from your .bashrc startup script in the root of your home directory. This will then take on the permissions of your current environment and you should have full access to it.
i wanted to have a link in the users home directory that needed access to it... for extra ftp storage and things like that... i also wanted to have the drive set up as a samba share to other computers in the LAN... is that making sense?
OK that's good. you are setting up the share from /fat-c. I can see that part of what you are doing. But first lets get a straighforward single mount working the way you want. Why not create a symlink to it from the home directories. That way all users can symlink to it rather than a single user with a bound mount.