LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   After transferring from mac drive, can't change permissions (https://www.linuxquestions.org/questions/linux-newbie-8/after-transferring-from-mac-drive-cant-change-permissions-625688/)

Splin 03-04-2008 02:39 PM

After transferring from mac drive, can't change permissions
 
Hi there!

I recently got some data from mac hsfplus FS external usb drive. With root rights I were able to copy data from mac drive to my data server. But now I need to make this data freely available to normal users. It shows that owner of this data is nobody. I can only access this data with root account. If I try to chown or chmod that data with root account then it says that I have no permission to do so.
What can I do to make this data freely available to linux users. Under windows(connected to samba to this server) I can freely access this data :/

Thanks a lot in advance!

MS3FGX 03-04-2008 06:54 PM

I have never heard of a file who's owner couldn't be changed.

Perhaps you can try making it world-accessible (chmod 777), and then copy it with a normal user account. When it is copied, it should inherit the ownership of whoever copied it and take sane permissions.

chrism01 03-04-2008 07:27 PM

You may need the chattr cmd: http://linux.about.com/od/commands/l/blcmdl1_chattr.htm (as root)

Splin 03-05-2008 02:33 AM

Quote:

Originally Posted by MS3FGX (Post 3078312)
I have never heard of a file who's owner couldn't be changed.

Perhaps you can try making it world-accessible (chmod 777), and then copy it with a normal user account. When it is copied, it should inherit the ownership of whoever copied it and take sane permissions.

So it goes:
Quote:

[root@FilmPost-HD Projects]# chmod 0777 -R Restauratsioon/
chmod: changing permissions of `Restauratsioon/': Operation not permitted
[root@FilmPost-HD Projects]# chown -R Tauno Restauratsioon
chown: `Restauratsioon/dust_busted_medium': Permission denied

Quote:

You may need the chattr cmd: http://linux.about.com/od/commands/l/blcmdl1_chattr.htm (as root)
At first sight that seems like alien language to me. All I would like to do is assign new user to that folder and change permissions to 0777. Can I do that with chattr? Sorry if it sounds stupid :)

Thanks all!

Splin 03-05-2008 03:14 AM

OK solution found!

Server location was NFS share. I used root in server and I were able to do with files whatever I wanted. I found out that user permissions are not configured properly in network. Can anyone recommend good tutorial how to set up user accounts in linux with file management over netowk in mind.


All times are GMT -5. The time now is 06:14 PM.