Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 21st March 2008, 12:23 PM
krishna.hore Offline
Registered User
 
Join Date: Jan 2008
Posts: 25
Question Access to home directories

Hi all....
I am linux newbie
I am using fedora 8.
I have three user accounts...
1) turtle
2) hulk
3) guest

each having their own home directory..
I want to access home directory of hulk, while I am logged in as turtle and vice-versa
guest should have access to only its own home directory as it has now...

I searched using google then
I tried changing file permission and group, but could not exactly figure out, how to go about the task..

Any suggestion.. will be greatly appreciated..
Reply With Quote
  #2  
Old 21st March 2008, 01:47 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,929
I think the whole idea of security in Linux is that no users have access to other users' home folders by default. You can access the folders as root.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 21st March 2008, 01:50 PM
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
Normally during account setup there is bot a user account and a group created for each users.
You can make user turtle a part of group "hulk and then also make user hulk a part of the tutrle group too. That's probably the easiest and best method. Also if tutrle has files he doesn't want hulk to see, be can remove the group read mask (chmod g-w secretfile).

Alternatively you can make a new group "share" and add this to the groups for both turtle and hulk. IN this case you'd have to change all the group ownership for the existing files like:
chgrp -R share /home/turtle
chgrp -R share /home/hulk
Also you need to change the group ownership of new files.

The user & group management tool should allow you to do this things.
Reply With Quote
  #4  
Old 21st March 2008, 01:51 PM
stevea's Avatar
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,300
Quote:
Originally Posted by glennzo
I think the whole idea of security in Linux is that no users have access to other users' home folders by default. You can access the folders as root.
I think you need to read a *nix 101 book. So very wrong.

Here is a very basic outline of the basic file control bits,
http://tldp.org/HOWTO/Security-HOWTO/file-security.html
It covers owner, group associations and also the permission mask bits.

What a lot of noobs and even experienced users don't underestand is that
there is also another layer of control provided by POSIX ACL, and the
POSIX "roles" feature. You can't set up a network interface unless you
take the CAP_NET_admin role and that is NOT necessarily associated with
the root account !


NO ! The basic permission system gives users the ability to control file
read/write/execute access based for the owner, the group associated with
the file and for "world" (every user). This is pretty flexible, but the ACLs go
way beyond this and provide any number of sets of access permissions per
flie. This is much finer control yet.

Last edited by stevea; 21st March 2008 at 02:05 PM.
Reply With Quote
  #5  
Old 23rd March 2008, 05:10 AM
LordMorgul's Avatar
LordMorgul Offline
Registered User
 
Join Date: Mar 2004
Location: Sourthern California, USA
Posts: 503
For this situation I would suggest going to the Users and Groups configuration, then add each of your user names to the GROUP of the other users (i.e. add turtle to the group named 'hulk'). Then set the group permissions for your homes (chmod -R g+rw /home/hulk). By default files in your home are owned by the your user's group (i.e. the hulk group for /home/hulk). Fairly easy approach to your problem here and much safer than accessing files as root regularly.

(edit: and.. I see stevea already posted that suggestion, I should have read the thread.)
__________________
- Andrew <lordmorgul@gmail.com>

No one now has, and no one will ever again get, the big picture. - Daniel Geer

Last edited by LordMorgul; 23rd March 2008 at 05:11 AM. Reason: heh, read thread then comment next time
Reply With Quote
  #6  
Old 19th April 2008, 02:18 PM
setamym Offline
Registered User
 
Join Date: Apr 2008
Posts: 12
I think glennzo was simple : just login as root.
Reply With Quote
  #7  
Old 22nd April 2008, 09:19 PM
starstatras Offline
Registered User
 
Join Date: Oct 2005
Location: England
Age: 21
Posts: 180
Im sure that is a very bad idea
Reply With Quote
Reply

Tags
access, directories, home

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump


Current GMT-time: 18:54 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat