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!
Notices
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.
How do I configure permissions and ownership [aka, access control] for USB and other "media" drives? In general, I want the plain user to have read-write-modify access. For the long haul, I would prefer some sort of config table that says this media gets those access settings on an individual basis.
While on the subject of "media" drives, how do I configure where a drive gets mounted? It appears that the defaults is /media/someString where "someString" is either a generated string or the volume label. Is this accomplished by a script somewhere that I might modify or configure?
I login using my personal, non-root account. When I connect a USB or other "media" drive, the permissions and ownership are such that I cannot use the desktop tools to alter the drive contents. Also, I need to guess where a given drive contents can be found.
If you login as non root user in the gui , and ain't able to use the gui interface to manage the device, try opening a terminal, change over to root user using sudo and open the browser from terminal window as under :-
nautilus "name of the mounted media"
example :-
nautilus /dev/sdc1 ; for my usb pen drive.
Even gedit "filename on the media" will open the file in rw mode in gui.
To check that you have the necessary privileges, go to System, Administration, Users and Groups. Unlock the screen with your password, single click on your name, single click on Properties. When the Account Properties screen opens, select the User Privileges tab and ensure that "Access external storage devices automatically" is ticked.
As administrator you can set these permissions on an individual basis.
Folks, I appreciate all of your comments, but didn't answer the question (blush) that I meant to ask.
Over here I have some USB drive. I want user=joe to have this access and user=mary to have that access. For some other USB drive I want user=joe and user=mary to have different access or no-access to the drive. In a script, this might be nested switch-case statements:
As root see which groups are available in /etc/group.
Then (as root) do:
useradd (or adduser) <user> -G <list of groups separated by commas>.
For example:
useradd timmy -G audio,cdrom, ...
This will let user timmy use audio, cdrom, etc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.