Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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'm trying to back up all my documents to a USB flash drive, which is encrypted with truecrypt. I decrypt the partition as root and i mount the partition as a user with fstab, since i can't do it directly. But, i'm getting permission errors with rsync. I've tried many options like umask and uid, but. . .
The uid, gid & umask options are for a vfat partition. As root, use chown and chmod to change permissions on a mounted partition. After that you should be able to mount it as a normal user if the fstab entry has the "user" option. I'm not sure how using truecrypt effects whether you can mount as a normal user or not.
The mount program has its suid bit set, but only allows a normal user to perform a mount if the user option is present in the fstab entry.
Well, what i've found out is that if i have mount point /mnt/sda, owned by "root", i can chown to "user" ( in other words, whatever your user name is ) and i'll be the owner of the directory. But, if i mount /dev/sda to it, the permissions change and the directory is owned by "root" again! Now, if you unmount, the directory will be owned by you again, but you need to be the owner when it's _mounted_! So, you have to chown the directory when the partition is mounted. Everytime you mount that partition it will automatically switch its permissions. In other words, the permissions for a mounted directory ( such as /mnt/sda ) are not the same as the permissions for an unmounted directory ( such as /mnt/sda ), even when they are one and the same!