LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Question about ownership/permissions (https://www.linuxquestions.org/questions/linux-newbie-8/question-about-ownership-permissions-210510/)

infornography 07-28-2004 03:40 AM

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.

UltimatePower 07-28-2004 03:53 AM

Try chmod 777 <FileORdir>

The 7's stands for all rights for each user.
:p

muhmmadaasim 07-28-2004 05:05 AM

hi dear
i wanted to mount NTFS partion,how i mount this.
thanks
bye

koyi 07-28-2004 05:07 AM

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

muhmmadaasim 07-28-2004 05:15 AM

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

koyi 07-28-2004 05:38 AM

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"........

muhmmadaasim 07-28-2004 05:42 AM

thank you dear
i try this but it does not work.
bye

class_struggle 07-28-2004 05:57 AM

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.


All times are GMT -5. The time now is 03:48 AM.