LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-30-2007, 03:53 PM   #1
MegaSvensk
Member
 
Registered: Sep 2007
Posts: 43

Rep: Reputation: 15
How to take ownership of a new partition?


Hi,

i'm running Ubuntu 7.04 and I've just created a new ext3 partition on my external hard drive (using Paragon Partition Manager in Win XP) but the ownership is set to root so I cannot do anything with it.
How do change the ownership?

I found this command in another thread on this topic but nothing happened when I ran it.
sudo chmod -R 777 /media/yourHardrive

EDIT:
Sorry, I posted this in the wrong section. Could someone please move it to the "Newbie" section?

Last edited by MegaSvensk; 09-30-2007 at 03:56 PM.
 
Old 09-30-2007, 04:08 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,341

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by MegaSvensk View Post
Hi,

i'm running Ubuntu 7.04 and I've just created a new ext3 partition on my external hard drive (using Paragon Partition Manager in Win XP) but the ownership is set to root so I cannot do anything with it.
How do change the ownership?

I found this command in another thread on this topic but nothing happened when I ran it.
sudo chmod -R 777 /media/yourHardrive

EDIT:
Sorry, I posted this in the wrong section. Could someone please move it to the "Newbie" section?
You cannot change the ownership or permissions of a mount point while it is mounted. Firstbumount /media/yourHardrive. Then use chmod to change permissions and chown to change ownership. See:
man umount
man chown
man chmod

---------------
Steve Stites
 
Old 09-30-2007, 04:12 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
For ownership, you want "chown"

That chmod command only makes sense if you substitute the name and path of your device. Also, note that "-R 777" gives everyone full privileges on the folder + all contents. Not necessarily what you want.

The best way to get the partition to mount the way you want it is by editing /etc/fstab
 
Old 09-30-2007, 04:30 PM   #4
MegaSvensk
Member
 
Registered: Sep 2007
Posts: 43

Original Poster
Rep: Reputation: 15
I ran the chown command and now I have ownership.

Thanks for your help.
 
  


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
Partition ownership user or root drudge Linux - General 4 09-22-2007 11:29 AM
quick question, ownership of a partition jimjamjahaa Linux - General 3 02-02-2006 12:46 PM
Can't change ownership of files on windows partition alan_the_eagle Linux - Newbie 4 03-27-2005 03:35 AM
Couldn't change ownership on a Fat32 partition kt8993 Linux - Security 2 01-09-2005 10:21 AM
fstab, mounting a fat32 partition, need help w/ ownership and all that mackstann Linux - General 2 10-15-2001 02:37 PM

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

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