Users Have Access to Root Files

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Users Have Access to Root Files

Postby jordan on Thu Aug 28, 2008 1:03 pm

I just formatted a usb drive and changed the permission of all data with this command.

Code: Select all
chmod -R 700 /media/My_USB_Drive


I listed all files to make sure it took affect. It did.

But, I am able to, as a regular user, NOT LOGGED IN AS ROOT, access all of those files.

What is going on?
jordan
Level 1
Level 1
 
Posts: 40
Joined: Mon Jun 02, 2008 5:45 pm

Linux Mint is funded by ads and donations.
 

Re: Users Have Access to Root Files

Postby CavalierBob on Thu Aug 28, 2008 5:52 pm

I think you need to change the Owner of the files from your userid to root. You have just changed permission levels but kept the same owner. Thus your user can still read the files.

Using the chown command should get you what you want.

http://www.ss64.com/bash/chown.html

Bob
All progress requires change, but not all change is progress.
--Henry Steele Commager

...there are some...who use change to promote their careers. And then there are those...who use their careers to promote change.
--Sarah Palin
User avatar
CavalierBob
Level 3
Level 3
 
Posts: 104
Joined: Wed May 14, 2008 2:27 pm
Location: Pleasant Hill, CA USA

Re: Users Have Access to Root Files

Postby jordan on Thu Aug 28, 2008 5:55 pm

Whoops... that was it. Still getting used to chmod. Thanks.
jordan
Level 1
Level 1
 
Posts: 40
Joined: Mon Jun 02, 2008 5:45 pm

Re: Users Have Access to Root Files

Postby CavalierBob on Thu Aug 28, 2008 7:13 pm

You are most welcome Jordan. Glad you were able to solve your problem.

If you could do me one small favor....could you edit your original post and add [Solved] to the topic?

Thanks!

Bob
All progress requires change, but not all change is progress.
--Henry Steele Commager

...there are some...who use change to promote their careers. And then there are those...who use their careers to promote change.
--Sarah Palin
User avatar
CavalierBob
Level 3
Level 3
 
Posts: 104
Joined: Wed May 14, 2008 2:27 pm
Location: Pleasant Hill, CA USA


Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], ChristopherGro7, Google [Bot], PatH57, Pilosopong Tasyo, Tarzan, Tb88 and 30 guests