LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 01-25-2004, 08:52 PM   #1
questionasker
Member
 
Registered: Aug 2003
Location: North Carolina, USA
Distribution: Onebase 2004-r2 | Updated through 6-10-04
Posts: 359

Rep: Reputation: 30
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".

please help
thanks in advance
 
Old 01-25-2004, 09:15 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
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.
 
Old 01-25-2004, 09:18 PM   #3
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
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.

Hope that helps
 
Old 01-25-2004, 11:28 PM   #4
questionasker
Member
 
Registered: Aug 2003
Location: North Carolina, USA
Distribution: Onebase 2004-r2 | Updated through 6-10-04
Posts: 359

Original Poster
Rep: Reputation: 30
m_yates, thanks. that did help.

i knew it had something to do wiht chmod, but i had forgotten exactly what.
 
Old 01-26-2004, 09:30 AM   #5
questionasker
Member
 
Registered: Aug 2003
Location: North Carolina, USA
Distribution: Onebase 2004-r2 | Updated through 6-10-04
Posts: 359

Original Poster
Rep: Reputation: 30
but now i have a problem!

when i try to log in as user that i made acessible to all (/home/bob)
it wont let me log in with bob, in gnome. kde has no trouble.

the only thing ive done since it worked fine was change permissions.

would this mess up gnome?
well obviously it did.
a bigger question: how do i fix it?
change permissions back to default?
how is that done?
 
Old 01-26-2004, 09:39 AM   #6
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
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.
 
Old 01-26-2004, 01:07 PM   #7
questionasker
Member
 
Registered: Aug 2003
Location: North Carolina, USA
Distribution: Onebase 2004-r2 | Updated through 6-10-04
Posts: 359

Original Poster
Rep: Reputation: 30
there was nothing important, luckily.
i used command given in post above.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to sort regular users and system users from /etc/passwd joeyBig Red Hat 9 05-29-2008 12:59 AM
regular users using halt TimmyP Debian 4 11-08-2004 03:06 AM
need drive write permissions with regular user vettebro1 Linux - Newbie 3 03-04-2004 09:16 PM
allowing regular users to shut down abyss Linux - General 1 08-30-2002 12:39 PM
Change permissions on NTFS partition to read for all users bax Linux - Newbie 6 05-13-2002 07:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration