LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 04: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, 07:50 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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, 10: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, 10: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, 10: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, 12: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, 12:30 PM   #7
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

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


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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