LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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.

Notices


Reply
  Search this Thread
Old 05-30-2013, 01:42 PM   #1
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554

Rep: Reputation: 30
View other users files on my system


Hello, I have a linux box setup with a few regular users. I want to be able to go in and view their files for backup purposes and whatnot, but not require sudo everytime I want to go into their folders.

Is there any way that I can do this without using sudo/root?

I'm using lubuntu 12.10.

-Thanks
 
Old 05-30-2013, 02:39 PM   #2
dayid
Member
 
Registered: Apr 2012
Location: Austin, TX
Posts: 44

Rep: Reputation: Disabled
Most often read access for others exists in many systems' default umask settings.

Otherwise, you'll either need to have permissions set for each user to where your user can access their files (either using the other permissions - or creating a group that they/you are members of and set group permissions properly).

If you can't set permissions for your user to access their files, you will need to use root.
 
Old 05-30-2013, 03:46 PM   #3
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554

Original Poster
Rep: Reputation: 30
It worked. I simply added my user to that group as a secondary group. Now I can view all the files.

Thanks
 
Old 05-30-2013, 04:32 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
They now can read your files too, so......
 
Old 05-30-2013, 05:14 PM   #5
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 910

Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by John VV View Post
They now can read your files too, so......
John, think that through... if usera and userb are in different groups, then adding userb's group as a subgroup for usera allows usera access to userb's directories and files as governed by the group permission bits. But since userb does not have usera's group as a secondary group, userb has only access to usera's files as governed by the world permission bits.

To the OP, dayid touched on this. Even though you added your user's group to your account as a subgroup, your access to their files is governed by the group permission bits they have set on their files and directories. They can change these at any time and prevent you from accessing their files.

For example, if they set umask 077 in their login profile (~/.profile) and non-login interactive shell profile (for example for the bash shell, ~/.bashrc), then all files and directories they create will have the read, write, and execute bits in the group and world permission bits turned off. You won't be able to access their files and directories even if you have added their group to your user account as a subgroup.

Last edited by Z038; 05-30-2013 at 05:27 PM.
 
Old 05-30-2013, 11:14 PM   #6
xmrkite
Member
 
Registered: Oct 2006
Location: California, USA
Distribution: Mint 16, Lubuntu 14.04, Mythbuntu 14.04, Kubuntu 13.10, Xubuntu 10.04
Posts: 554

Original Poster
Rep: Reputation: 30
So then what do I do? In the windows world, the administrator can read everyone's files no matter how they save them. Do we have something like that in linux?
 
Old 05-30-2013, 11:33 PM   #7
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 910

Rep: Reputation: 174Reputation: 174
For Linux, the administrator account is root.
 
1 members found this post helpful.
Old 06-01-2013, 06:11 PM   #8
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
You should be using root, and I don't understand why you started with the restriction to not do that in the first place. If you try to manipulate groups, then you may end up allowing access to files which you didn't intend to.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why cant users access files that they own on SSHFS mounted file system? startoftext Linux - Networking 1 08-19-2011 02:28 PM
Need help to find linux programs that hack or view widows system files lilsandi30 Linux - Newbie 2 12-08-2009 09:10 PM
With 2 bootable drives in one system, view files on non-boot drive?? lakedude Linux - Newbie 3 11-19-2008 12:00 AM
LXer: How Microsoft and Apple are screwing users on multimedia, how to avoid getting screwed ... and what Ogg files are and how to play them on your system LXer Syndicated Linux News 0 04-18-2007 04:31 AM
samba - users can see system files etc when accesing share t3___ Linux - Software 8 01-08-2004 01:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:57 PM.

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