LinuxQuestions.org
Visit Jeremy's Blog.
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 03-10-2006, 12:23 PM   #1
thelonesquirrely
LQ Newbie
 
Registered: Mar 2006
Posts: 10

Rep: Reputation: 0
permissions help


ok so this isn't to secure something, rather it is to break it.

I closed an account at one of my computers computing labs. I took all of the files (~50) and backed them up on my friends account. most of them are just code files. The problem is that I didn't open the files up. The whole folder has it's permissions set to be r/w/e by owner only and exec by others (711). Well that owner doesn't exist anymore. I would like to recover access to these files. I think this means that I will somehow have to change the permissions to the file from a different user. any ideas?


i know that this is trying to bypass the security features and i have inquired with the dept. if i could restore part or whole of the account for just a little while. they will be getting back to me (i don't think the woman understood what i was talking about, but we'll see). i am not going to use this info except to recover my files. and any info extra info to help me understand permissions would be helpful too. Thanks!

::ryan
 
Old 03-10-2006, 12:38 PM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
Hi and welcome to LQ Forums

Ask the root to change the file ownership and/or the permissions

Only root can do that for files that do not belong to u any more.
 
Old 03-10-2006, 12:52 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
The admins at the department will be able to run chown or chmod so that your friends account owns them. They'll just need to know which home directory the files are currently in. Actually, they can find them without you telling them, but they'll probably want to hear it from you as confirmation.

Using chown can make your friends account the owner so that his account has the '7' (rwx) permission on the files. Using chmod can change the permissions from 711 to 716, for example so that your friend can read and delete the files. The first way is preferable because the last number is the permission that everyone has on the file.

I open someone's post, go away to make a coffee and by the time I get back it's already replied to

Last edited by gilead; 03-10-2006 at 12:55 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
permission ... permissions .... permissions alaios Linux - General 1 05-31-2005 04:16 AM
Need Help with Permissions imagreg Slackware 21 04-30-2004 12:58 PM
permissions spuppett Linux - Newbie 4 04-12-2004 01:32 PM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 12:52 PM

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

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