Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Onebase 2004-r2 | Updated through 6-10-04
Posts: 359
Rep:
change permissions for regular users...
i have my root account, and two reg users.
i have some stuff in one account, gimp pics, certain browser updates, music, etc. that i want to access from second user account.
i know it has something to do with permissions, cuz when i try to open a file from other account, says "access denied".
By default users home directories and files they create are marked as not readable by anyone else so that uses can keep there files confidential. A good way to do what you want is to have a directory that is readable/writeable by everyone in the users group and put your files that you want everyone to be able to access there.
The command you need is "chmod". Type "man chmod" to read up on how to use it.
As an example, if you have files in user "Bob's" directory "files" that you want to share with everyone:
chmod -R a+rwx /home/bob/files/
That means all will be given read, write, and executable access to the files in the "files' directory of Bob. The -R means "recursively" so that the operation will proceed for every file in "files' and subdirectories of "files".
You can also do this graphically in KDE. Open a terminal and "su" to become root. Type "konqueror" to start konqueror as root. Navigate to the directory with files you'd like to share. Right click on the directory icon and select "properties' then "permissions" and you can tick who you want given permission. You can also tick "apply changes to all subdirectories and their contents" if you want the operation done recursively.
What did you change the permissions to? You want to be careful that you don't have the wrong user taking ownerships of files in somebody else home directory. Which is why I said you probably want to have files that are shared in a seperate place.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.