FedoraThis forum is for the discussion of the Fedora Project.
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.
Well, I've been using Linux since 2 years. Finally, I decided to completely remove all traces of Windows from my box. As you can imagine that I backed up all data on a different PC, installed "Fedora Core 2" and then moved all data back to the box as "root".
Now, most of the files copied back have only "read" permission for "anurag"(a normal user). This time I also tried using multiple partitions instead of one /
So I created / , /masti , /software and /other.
The problem is, is there any automatic way to take ownership and access to all my data from "root" to "anurag" ??
How to allow read/write permission to /masti /software /other in normal user mode( just send me the fstab line, i havent changed it yet )
You don't do that in fstab, change the permissions on the files or the ownership.
If root is owner, change ownership:
# chown -R anurag anurag <directory> (-R changes recursively)
or for permissions:
# chmod -R u+w <directory> (instead of 'u+w' you could type in numbers, like '700' gives full access to owner, no access to other.)
Now, I have another problem... I cannot execute binaries. Working anywhere in / is fine. But when I compile a binary in /other and run it, is says
bash: ./a.out: Permission denied
Not sure really...
Do you type the full path when trying to execute?
Don't know if you know that Linux doesn't search any path not specified in $PATH. That means that unlike DOS/Windows, you can't execute binaries in the present directory without adding the path. You could use
# ./<file>
Hi,
I resolved the problem......actually i posted the problem to my local LUG...and one of the members suggested to add "exec" as an option for the partitions in fstab.....Now all my executables work fine .... cheers..!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.