LinuxQuestions.org
Visit Jeremy's Blog.
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 07-28-2004, 03:40 AM   #1
infornography
Member
 
Registered: Oct 2003
Location: Australia
Distribution: Xubuntu 6.10
Posts: 73

Rep: Reputation: 15
Question about ownership/permissions


I just installed Linux, and copied some files over from a FAT partition into my home directory. Since only root had permission to do so, I did it as root. But now all the files are owned by root.

I tried using konqueror to set my self as the owner, but it only ever seems to work for 1 level of files/folders, even when I tell it to include all subdirectories. Is there a command that will make every folder and file in my in my /home directory owned by me?

Thank you.

Last edited by infornography; 07-28-2004 at 03:42 AM.
 
Old 07-28-2004, 03:53 AM   #2
UltimatePower
Member
 
Registered: Jul 2004
Posts: 31

Rep: Reputation: 15
Try chmod 777 <FileORdir>

The 7's stands for all rights for each user.
 
Old 07-28-2004, 05:05 AM   #3
muhmmadaasim
LQ Newbie
 
Registered: Jun 2004
Location: pakistan
Posts: 18

Rep: Reputation: 0
hi dear
i wanted to mount NTFS partion,how i mount this.
thanks
bye
 
Old 07-28-2004, 05:07 AM   #4
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Rep: Reputation: 31
Code:
chown -R user:group directory
changes the owner:group of all files under directory recursively...

Same,
Code:
chmod -R 644 directory
changes the permissions of all files under directory recursively, but this set the execute bit of directory to 0. That means you cannot chdir into it. so you need to change the permissions of all directories inside it with the following command:
Code:
find directory -type d -exec chmod +x {} \;
But I think you should allow your user to access the FAT drive to effectively solve this problem forever. Do this by editting /etc/fstab. For example, my fstab line about my FAT partition:
Code:
/dev/hdb1               /mnt/work       vfat            auto,umask=0000        0 0
the umask=0000 is important here.... but then everybody with access to your computer would be able to write and read to the FAT partition...

Good luck
 
Old 07-28-2004, 05:15 AM   #5
muhmmadaasim
LQ Newbie
 
Registered: Jun 2004
Location: pakistan
Posts: 18

Rep: Reputation: 0
thankyou dear
Above u mention vfat for fat partion,Is there any type is used for NTFS in fstab file.?????????????????
mount -t vfat /dev/hda6 /mnt/asim
something like this for NTFS,is it possible???????????
thanks bye
 
Old 07-28-2004, 05:38 AM   #6
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Rep: Reputation: 31
Quote:
Originally posted by muhmmadaasim
thankyou dear
Above u mention vfat for fat partion,Is there any type is used for NTFS in fstab file.?????????????????
mount -t vfat /dev/hda6 /mnt/asim
something like this for NTFS,is it possible???????????
thanks bye
if you have NTFS support compiled in your kernel, you should be able to mount it with
Code:
mount -t ntfs /dev/hda6 /mnt/asim
But last time the NTFS support in linux kernel is still under experiment and it is safe to read from NTFS partition but highly dangerous writing to NTFS partition. I am not sure how the situation is now. Maybe you should do a search for "mount NTFS"........
 
Old 07-28-2004, 05:42 AM   #7
muhmmadaasim
LQ Newbie
 
Registered: Jun 2004
Location: pakistan
Posts: 18

Rep: Reputation: 0
thank you dear
i try this but it does not work.
bye
 
Old 07-28-2004, 05:57 AM   #8
class_struggle
Member
 
Registered: Nov 2003
Location: where rock meets hard place
Distribution: 1- Knoppix 2-Gentoo
Posts: 121

Rep: Reputation: 15
to mount ntfs the lazy way, just use auto when mounting:

i.e.

mount -t auto /dev/hda6 /mnt/asim

if hda6 is your ntfs partition. asim doesn't seem to be a good name for your ntfs mount, and niether is calling the linux faithful here on LQ "dear". However, if it helps your memory, fine.
 
  


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
Permissions & Ownership Really screwed slacard Other *NIX 1 04-03-2005 12:36 AM
File permissions and ownership all screwed up Haiyadragon Linux - General 6 09-20-2004 01:09 PM
Compile Package Permissions Ownership Changes PDock Linux - General 0 08-17-2004 07:52 AM
permissions/ownership on /var/ftp for vsftpd pioniere Red Hat 3 02-19-2004 03:38 PM
write permissions / ownership bynaar Slackware 15 08-08-2002 04:25 AM

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

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