LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 08-10-2004, 08:35 AM   #1
_UnPrEdictAbLe_
Member
 
Registered: Aug 2004
Location: Hyderabad, India
Distribution: Fedora Core 4
Posts: 183

Rep: Reputation: 30
Question Ownership problems


Hi,

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 )

Thanx.
 
Old 08-10-2004, 08:48 AM   #2
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,293

Rep: Reputation: 123Reputation: 123
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.)
 
Old 08-10-2004, 09:02 AM   #3
_UnPrEdictAbLe_
Member
 
Registered: Aug 2004
Location: Hyderabad, India
Distribution: Fedora Core 4
Posts: 183

Original Poster
Rep: Reputation: 30
Hi,

Thanks, that worked!!

I also changed the fstab lines...now it looks like this..

LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/masti /masti ext3 defaults,users,rw 1 2
LABEL=/other /other ext3 defaults,users,rw 1 2
none /proc proc defaults 0 0
LABEL=/software /software ext3 defaults,users,rw 1 2
none /sys sysfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0

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

What could possibly be the problem??
 
Old 08-11-2004, 05:02 AM   #4
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,293

Rep: Reputation: 123Reputation: 123
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>
 
Old 08-11-2004, 02:42 PM   #5
_UnPrEdictAbLe_
Member
 
Registered: Aug 2004
Location: Hyderabad, India
Distribution: Fedora Core 4
Posts: 183

Original Poster
Rep: Reputation: 30
Cool

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

Eg..
LABEL=/other /other ext3 defaults,users,rw,exec 1 2
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange permission issue. Problems changing ownership. ExCIA Linux - Newbie 6 05-26-2005 04:17 AM
Ownership Shifty02 Mandriva 2 05-21-2005 03:38 PM
samba directory ownership problems in domain mode calpha Linux - Networking 0 01-09-2004 07:42 PM
Ownership problems Savahn Linux - Newbie 3 03-22-2003 12:37 PM
permission or ownership problems trusouthrnplaya Linux - General 6 03-03-2002 03:33 PM


All times are GMT -5. The time now is 08:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration