All files/Directories owned by root (unable to change with "chown")
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
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.
All files/Directories owned by root (unable to change with "chown")
Hello Friends
I have 500 Gb external Hard drive. I just bought it and attached. What i had change only is that, In beginning it was showing it as icon "485 GB Media" on desktop.I dont remeber due to some reason i had changed its mount point & it stop mounting. Then i had made a entry in fstab to mount it.
now it is mounting under /mnt
Problem i am facing now is
I have some image file down loaded from inetrnet
i tried to use them in HTML prgramming. some of them shows error "may not have permissions".
What i see is every file on my hdd is owned by root root
i tried to change it by "chown". But i could not
any help please
Last edited by KinnowGrower; 10-22-2008 at 09:07 AM.
I have 500 Gb external Hard drive. I just bought it and attached. What i had change only is that, In beginning it was showing it as icon "485 GB Media" on desktop.I dont remeber due to some reason i had changed its mount point & it stop mounting. Then i had made a entry in fstab to mount it.
now it is mounting under /mnt
Problem i am facing now is
I have some image file down loaded from inetrnet
i tried to use them in HTML. some them error "may not have permissions".
What i see is every file on my hdd is owned by root root
i tried to change it by "chown". But i could not
any help please
Did you use the 'chown' command with root privileges?
You can only make changes to 'root' related settings under the root account.
'su' or 'su -' will give you the root account assuming you know the root password.
You probably have mounted it as root?
Did you already thought about that?
man mount
You must mount it in the fstab as user or users
Hi friend,
What i remeber i think i have mounted it as root.
Can u please tell me how i can mount it in fstab as users
This is what i have did in fstab
/dev/sdb1 /mnt/usbhdd ntfs defaults 0 0
where i have to make change
. Even it will be greta help if we can allow it to mount as usual . Means as it was mounting automatically before changes in /etc/fstab. But i dont know the way.
Your drive appears to be ntfs, which needs some special care in order to be usable in Linux. When you had it automounting, everything was configured for you, but you have to manually configure everything now that you've gone to fstab.
First of all, in order to get safe write support, you need to be using the fuse/ntfs-3g mount system. The native Linux ntfs is only read-safe.
Second, ntfs (and fat as well) doesn't natively support *nix permissions and ownerships, so no amount of chmod or chown'ing will do you any good. These settings have to be simulated with various mount options.
Using NTFS on Linux has been covered many times in many places, so I suggest you do a little search footwork here and on google.
By the way, a better option for you would be to try to get it working under the automounter again. fstab is not really the best way to configure removable media.
Also, if the drive isn't ever going to be plugged into a Windows system, you should consider reformatting it to ext3 or another native Linux filesystem. It would be much easier for you than having to deal with simulated permissions and ownership all the time.
By the way, a better option for you would be to try to get it working under the automounter again. fstab is not really the best way to configure removable media.
Also, if the drive isn't ever going to be plugged into a Windows system, you should consider reformatting it to ext3 or another native Linux filesystem. It would be much easier for you than having to deal with simulated permissions and ownership all the time.
hi david
but i dont know how to again automount the hdd
even i dont want to work it with /etc/fstab
i have a computer that is daul booting. Some time we may have to use it under windows as well
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.