LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-11-2008, 05:59 AM   #1
hate29
Member
 
Registered: Oct 2005
Location: Finland, Tampere
Distribution: Debian
Posts: 47

Rep: Reputation: 15
How do I change the owner or get read/write access to my hd?


So, how do I change the owner and get read/write access to a hd? I've managed to do this with few mouse clicks as logging in as a root, but the last hd doesn't work like that. So, how do I this thing in terminal?

ls -l in /mnt/ gives me this:
Code:
drwxrwxrwx 178 hate29 hate29 12288 2008-02-04 17:43 1
drwxr-xr-x   3 root   root    4096 2008-02-11 12:33 2
drwxrwxrwx   7 hate29 hate29  4096 2008-02-10 16:24 3
 
Old 02-11-2008, 08:50 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
What does your /etc/fstab show as mount parameters for the hard drive partitions, and which drive and partition is giving you trouble?
 
Old 02-11-2008, 11:00 AM   #3
ingerul9
Member
 
Registered: Jan 2007
Posts: 35

Rep: Reputation: 15
Hate let me give you an example. In your case the "file 3" has owner "hate29" and group "hate29". If you want to change it to user and group root simply type "chown root:root 3"
 
Old 02-11-2008, 11:14 AM   #4
mahmoud
Member
 
Registered: Apr 2006
Location: UK
Distribution: Mandriva, Debain, Redhat, Fedora, Ubuntu, FreeBSD
Posts: 269

Rep: Reputation: 30
chown user.group file
 
Old 02-11-2008, 11:22 AM   #5
hate29
Member
 
Registered: Oct 2005
Location: Finland, Tampere
Distribution: Debian
Posts: 47

Original Poster
Rep: Reputation: 15
/etc/fstab:
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda1       /               ext3    defaults,errors=remount-ro 0       1
/dev/sda5       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/hdb1       /mnt/3          ext3    defaults
/dev/hda1       /mnt/1          ext3    defaults
/dev/hdd1       /mnt/2          ext3    defaults
The problem is with hdd1 mounted in /mnt/2.
 
Old 02-11-2008, 01:19 PM   #6
hate29
Member
 
Registered: Oct 2005
Location: Finland, Tampere
Distribution: Debian
Posts: 47

Original Poster
Rep: Reputation: 15
chown hate29:hate29 /mnt/2 did the job, thank you. Now I have another question, is it safe to rename lost+found to .lost+found (so it would be hidden)?
 
Old 02-11-2008, 01:30 PM   #7
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
With regard to lost+found, read this: http://tldp.org/LDP/Linux-Filesystem...lostfound.html
 
  


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
SAMBA read write access desertViking Linux - Newbie 2 12-05-2005 03:06 PM
read write access phoenix_wolf Linux - Newbie 2 12-05-2004 10:35 AM
how do I change the filesystem from read-only to read-write? les_chow Linux - Newbie 5 05-26-2004 04:14 PM
How do I change read/write permissions for a whole directory? Stevetgn Linux - Newbie 8 12-31-2003 08:41 AM
Change from Read only to Read Write File System? justiceisblind Linux - Newbie 3 03-03-2002 08:23 PM


All times are GMT -5. The time now is 08:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration