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.
Why are you trying to give a file permissions that mean no-one can read it, not even the creator or root ? I think that chmod is behaving correctly here.
That was only example. He even can't do "chmod o-r testfile". And, at least on Ubuntu, removing all permissions is allowed, root bypasses checking them. He definitely can't remove read permission from this file and permissions for user, group and others depend on each.
@sungchoiok:
Check if this behavior also concern other files in this directory. And as I suggested earlier check type of filesystem.
Thank you for the generous replies..
At least, knowing that I'm not doing something completely stupid is comforting
There are five mounts, which are hda1, hda2, hda3, hda5, and sda1.
The first two 'hda's have my Windows 7 OS and the type is NTFS, so my DSL (Damn Small Linux) cannot even write to it.
The hda5 and sda1 is FAT. One is FAT32 and one is FAT, in my belief; I'm not at my computer right now, so I don't exactly know. Anyhow, I tried the same commands (and various others which I have not mentioned) and the results are more or less the same... either the files becoming, with some combinations, -r--r--r-- or with others, -rwxrwxrwx.
It's not a particulary important function, since I'm the only one using the computer and the members of my family (who are distrustful, lol) would gasp at a monitor filled with colorful text and no GUI, but nonetheless, it would be better to have them for practice, because I want to know more about Linux!
the very very old fat ( 16 bit for win95 )
or the newer ( 1998) fat32 DO NOT support file permissions
NOR dose the ntfs partition format
there is no way to change them because they DO NOT have any permissions !!
You can't change permission on FAT or NTFS with chmod, but during mounting you can choose owner, group and permissions for all files on given partition. Read proper section of "man mount".
however a good question would be WHY are there fat and fat32 partitions on a windows7 ( 64 bit) os default on new hardware
or 32 bit on a vista upgrade
a very small HP or dell"recovery" partition yes but....
and why is the OP using dsl on a machine that has win 7 on it
Hmm. I take that you are "comdemming" me for installing Windows 7 on a FAT partition, but I never claimed that I did such a thing; the disk that has my Windows OS is NTFS.
Also, the FAT32 hard drive is the 5 GB partition that I made that is used by the Linux, not Windows.
Also, I decided to use the CD-booting Linux since I felt not ready to use a "full-scale" one.. any better alternatives you give me will be welcomed!
"You can't change permission on FAT or NTFS with chmod"... so what file system?
Thank you~
Last edited by sungchoiok; 10-25-2010 at 04:25 PM.
Linux mainly use ext2, ext3 or ext4. If you have no data on that 5GB FAT32 partition you can reformat it by 'mkfs.ext2' Double check if you set proper device name, to not destroy your Windows.
Linux & MS use different file permissions models. Don't try to use Linux chmod on any MS formatted disk ie FAT, NTFS.
Ususally on Linux the current default FS type is ext3, so the cmd
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.