LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-28-2009, 01:10 AM   #1
pratapchiluveru
Member
 
Registered: Dec 2008
Posts: 39

Rep: Reputation: 15
Installing HFS in linux


Hi! Everyone
I am using Fedora 8 installed in my laptop. I want to install (use) HFS in linux, which is similar to windows, so that i can share my files across the network. How can I do this. I downloaded a file from http://sourceforge.net/projects/linux-hfsplus
But it is opening like a text file and I don't know how to install that. Can anyone help me regarding this.
Thanks in advance..
 
Old 04-28-2009, 01:21 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you want to share files over the network, then you don't need to install HFS. It is the filesystem the Macintoshes use. Over the network, you can share directories using samba (for sharing with Linux, Macs or Windows) or NFS (for sharing with Linux or Macs).

The patch you found is for patching the source code of a 2.4 Linux kernel. You probably have a 2.6.xxx version kernel.
 
Old 04-29-2009, 12:01 AM   #3
pratapchiluveru
Member
 
Registered: Dec 2008
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal View Post
If you want to share files over the network, then you don't need to install HFS. It is the filesystem the Macintoshes use. Over the network, you can share directories using samba (for sharing with Linux, Macs or Windows) or NFS (for sharing with Linux or Macs).

The patch you found is for patching the source code of a 2.4 Linux kernel. You probably have a 2.6.xxx version kernel.
Actually my students have limited account and they don't having sharing option (I disabled). I can give the files with httpd but the problem is I cant take files from them. I need to take files from them as well. If I have hfs then i can have a option like upload.
Thank you
 
Old 05-01-2009, 06:38 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You lost me on how having HFS allows you to take files. And what does httpd have to do with anything?

The sharing option, if I'm thinking about the same thing would allow them to offer a directory in their own directory as a samba share or via a web service.

You could still have a share setup where they can save files.

If you mean that you need to access their home directories, as the instructor, but you don't have root access, you can use a Linux filesystem and use "setfacl" to allow yourself read access to the files & read/execute access to the directories.

I'll assume that your username is "prata".

sudo setfacl -m g:u:prata:rx /home/ /home/*/

Will give you read/execute access to the /home partition and the students home directories.
Note: If there are other teachers with home directories under /home, then do this for only the students home directories. Not the other teachers!

E.G.
Code:
for student in mike, sally, billy, thomas; do
  sudo setfacl -m d:u:prata:rx /home/$student/
done
Perhaps you just want access to the /home/$student/html/ directory.
Code:
for student in mike, sally, billy, thomas; do
  sudo setfacl -m u:prata:rx   /home/$student/
  sudo setfacl -m d:u:prata:rw /home/$student/html
  sudo setfacl -m u:prata:r   /home/$student/html
done
Notice the d: in "setfacl -m d:u:prata:r /home/$student/html". It creates a default ACL for new files that a students creates. This gives you read access to the file. You may also need to insert the lines:
sudo setfacl -R -m u:prata:r /home/$student/html/*
sudo setfacl -R -m u:prata:rx /home/$student/html/*/
to change the ACLs of the files and directories already present before you made the changes. The older files don't have the ACL settings you need.

For access using Samba, your user needs permission in the samba setup. Your user also needs permission on the filesystem itself. This is what setting the ACLs will do.

Otherwise, you would need to allow "o" (other) read permissions, which would allow sharing when logged in.

If they can't log in (shell account), then you could configure samba to only allow "%U" and "prata" permission to the service. Using a [Profile] service rather than a [Homes] services would work best for this. Only the users own home directory would show up in the browser by clicking on the Server icon.
Instead of "Profile", it would be their own Home directory.
 
Old 05-02-2009, 02:37 AM   #5
pratapchiluveru
Member
 
Registered: Dec 2008
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jschiwal View Post
You lost me on how having HFS allows you to take files. And what does httpd have to do with anything?

The sharing option, if I'm thinking about the same thing would allow them to offer a directory in their own directory as a samba share or via a web service.

You could still have a share setup where they can save files.

If you mean that you need to access their home directories, as the instructor, but you don't have root access, you can use a Linux filesystem and use "setfacl" to allow yourself read access to the files & read/execute access to the directories.

I'll assume that your username is "prata".

sudo setfacl -m g:urata:rx /home/ /home/*/

Will give you read/execute access to the /home partition and the students home directories.
Note: If there are other teachers with home directories under /home, then do this for only the students home directories. Not the other teachers!

E.G.
Code:
for student in mike, sally, billy, thomas; do
  sudo setfacl -m d:u:prata:rx /home/$student/
done
Perhaps you just want access to the /home/$student/html/ directory.
Code:
for student in mike, sally, billy, thomas; do
  sudo setfacl -m u:prata:rx   /home/$student/
  sudo setfacl -m d:u:prata:rw /home/$student/html
  sudo setfacl -m u:prata:r   /home/$student/html
done
Notice the d: in "setfacl -m d:urata:r /home/$student/html". It creates a default ACL for new files that a students creates. This gives you read access to the file. You may also need to insert the lines:
sudo setfacl -R -m urata:r /home/$student/html/*
sudo setfacl -R -m urata:rx /home/$student/html/*/
to change the ACLs of the files and directories already present before you made the changes. The older files don't have the ACL settings you need.

For access using Samba, your user needs permission in the samba setup. Your user also needs permission on the filesystem itself. This is what setting the ACLs will do.

Otherwise, you would need to allow "o" (other) read permissions, which would allow sharing when logged in.

If they can't log in (shell account), then you could configure samba to only allow "%U" and "prata" permission to the service. Using a [Profile] service rather than a [Homes] services would work best for this. Only the users own home directory would show up in the browser by clicking on the Server icon.
Instead of "Profile", it would be their own Home directory.
thank you for your replay!
But my students are not using Linux, they are using windows XP. Here the problem comes.
 
Old 05-04-2009, 07:30 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You will need to provide more details on your configuration and the students'. Do the students offer a share that would enable you to grab a file?

Are you running a web service on your laptop where students can upload or download files using a web interface? Or are you running a WebDAV server?

You wouldn't be able to actively download files from a students computer to your laptop unless they have a fileshare setup.

Do the students have accounts on your laptop, or are you talking about a server, which is separate from your laptop, and what you need to do is log in with your account and grab files from the students account. In either of these situations, you can use setfacl to grant you read access to the students directories, and if using Samba, give your user access to the students services ( probably set up as a [Home] or [Profile] service. )

Last edited by jschiwal; 05-05-2009 at 08:39 AM. Reason: student -> students'
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert DVD image from HFS+ to Hybrid HFS/ISO Dark_Elf Linux - Software 0 10-24-2007 12:42 PM
hfs: unable to find HFS+ superblock VFS: Can't find ext3 filesystem on dev sdb. macroron Linux - Hardware 3 11-20-2006 09:50 PM
Error mounting HFS+ volume: unable to find HFS+ superblock applewax Linux - General 3 05-31-2006 08:45 AM
How do i create HFS, HFS+ and RockRidge CD's? moore757 Linux - Software 2 06-19-2005 10:13 PM
hfs support in Linux navneet_3 Linux - Software 1 08-21-2003 08:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration