LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-12-2007, 02:42 PM   #1
admirer4
LQ Newbie
 
Registered: Aug 2007
Posts: 1

Rep: Reputation: 0
How to get read access to another user file ?


hey,

i have problem how to get access to file which belong to another user .. in other words i was working in my linux (Ubuntu) after that i have created a new user account and by mistake i have deleted the account that i have the work on. now i login to the new created account and i am surpried that i can't read the files which in the home folder which belong to the deleted account i can see the files but i can't read them it seems that i was stupid and didn't let the other group any access !! help me please how to read the files all what i want to copy them .. ?? please i need quick help
 
Old 08-12-2007, 02:52 PM   #2
docalton
Member
 
Registered: Dec 2002
Location: St Louis, MO
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 15
Here is what would do.

Go to a terminal window

use the command to get a root shell
sudo bash

go to the root of the home directory
cd /home

then change the permissions on the directory please substitute <directory> appropriately
chmod 777 <directory> -R

Please note that the above command will make everything in that directory and recursively 777 (read+write+execute to everyone)

Hope this helps
 
Old 08-12-2007, 03:21 PM   #3
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 97
An alternative to using chmod... would be to use chown -R <newusername>:<newgroupname> <directory>, to assign ownership of the directory and all files in it to your new user (which I presume is what you'll want to do).

Specifying the groupname is optional, but a good idea if you're using a distro that doesn't have a general group like users to which all normal users belong.
 
  


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
Non-root user has read-only access to fat-c partition Ook Slackware 12 05-25-2007 08:49 AM
Why can't I set user read access for mounted ntfs drives? sureshot324 Linux - Software 6 01-08-2006 10:42 PM
where a service should place a folder so every user can have read/write access. shahidawan Linux - Security 3 05-07-2005 01:25 PM
slackware 10.. root user only gets read only access gtan Slackware 2 09-25-2004 07:51 AM
Isolating read access to only to one file only by another file. jon_k Linux - Software 3 08-14-2004 05:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:13 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