Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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...
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
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"........
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.