LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-17-2006, 02:53 PM   #1
LordDiablo
LQ Newbie
 
Registered: Jan 2006
Posts: 9

Rep: Reputation: 0
NTFS with FTP?


Hi everyone.

I just started my own FTP server in ubuntu and I have external hard disk with NTFS filesystem.

Now I'm trying to find out that how I can share NTFS content via my FTP server.

Please can someone help me ?!?!
 
Old 01-17-2006, 04:23 PM   #2
soulestream
Member
 
Registered: Nov 2005
Posts: 183

Rep: Reputation: 30
you wont be able to write to the NTFS drive safely.

However if you are just wanting to share data off it


just mount the NTFS drive and then make it a FTP folder.

/dev/hda# /mnt/ntfs ntfs auto,users,umask=222 0 0
(thats off the top of my head, but looks correct)

soule
 
Old 01-18-2006, 03:38 AM   #3
LordDiablo
LQ Newbie
 
Registered: Jan 2006
Posts: 9

Original Poster
Rep: Reputation: 0
How the syntax goes if I want to add link from NTFS system to my FTP folder and share all subdirs?

.. (And sorry my bad english) ...
 
Old 01-18-2006, 10:37 AM   #4
LordDiablo
LQ Newbie
 
Registered: Jan 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Ubuntu auto mounts my NTFS drive and gives it 500 user permissions and I can't change those permissions for NTFS because it's read only drive.

Can someone help me?!?!
 
Old 01-18-2006, 12:01 PM   #5
Master of Reality
LQ Newbie
 
Registered: Sep 2005
Distribution: Gentoo
Posts: 26
Blog Entries: 1

Rep: Reputation: 15
as was mentioned, it will have to be readonly because you cant safely write to NTFS using Linux. I think that even if you enable NTFS write-support(requires recompiling the kernel) you can only edit files that have already been created.

So youll have to add wherever it is mounted as an FTP folder.
 
Old 01-18-2006, 12:09 PM   #6
LordDiablo
LQ Newbie
 
Registered: Jan 2006
Posts: 9

Original Poster
Rep: Reputation: 0
So I can't add read permissions to group and other?
 
Old 01-18-2006, 12:31 PM   #7
Master of Reality
LQ Newbie
 
Registered: Sep 2005
Distribution: Gentoo
Posts: 26
Blog Entries: 1

Rep: Reputation: 15
oh... hm.... you can.... Is there a line in /etc/fstab that looks like: /dev/hda# /mnt/ntfs ntfs auto,users,umask=500 0 0

where /dev/hda# is where the partition is and /mnt/ntfs would be where it gets autmounted. If there is a line like this you need to change "umask=500" to "umask=555" if you want everyone to be able to read it

Last edited by Master of Reality; 01-18-2006 at 12:33 PM.
 
Old 01-18-2006, 02:34 PM   #8
LordDiablo
LQ Newbie
 
Registered: Jan 2006
Posts: 9

Original Poster
Rep: Reputation: 0
I don't have that kind of line in fstab but in mtab I have
/dev/sda1 /media/NameOfPartition ntfs
rw,noexec,nosuid,nodev,uid=1000,gid=1000,umask=077,iocharset=ut f8 0 0

If I change umask to 555 or even if I change other 7 to something else I can't
make link to FTP directory from the NTFS system.
 
Old 01-18-2006, 02:44 PM   #9
LordDiablo
LQ Newbie
 
Registered: Jan 2006
Posts: 9

Original Poster
Rep: Reputation: 0
It says "Cannot create link /etc/mtab~
Perhaps there is a stale lock file?"
when trying to add link to FTP directory
 
Old 01-18-2006, 10:15 PM   #10
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
You can safely write to NTFS partitions in Linux if you upgrade the kernel to 2.6.15
 
Old 01-19-2006, 09:31 AM   #11
LordDiablo
LQ Newbie
 
Registered: Jan 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Why I can't add link to my FTP folder from NTFS if group and other have rights to read that drive?
 
Old 01-19-2006, 09:46 AM   #12
Master of Reality
LQ Newbie
 
Registered: Sep 2005
Distribution: Gentoo
Posts: 26
Blog Entries: 1

Rep: Reputation: 15
try chmodding the directory so that other have execute permissions?
 
Old 01-19-2006, 10:56 AM   #13
LordDiablo
LQ Newbie
 
Registered: Jan 2006
Posts: 9

Original Poster
Rep: Reputation: 0
I couldn't chmod because drive was read only. I solved the problem when I removed those lines from mtab to fstab and then I changed rights there. Now my FTP server is running and working properly. Cheers to all!!!
 
Old 01-19-2006, 05:16 PM   #14
soulestream
Member
 
Registered: Nov 2005
Posts: 183

Rep: Reputation: 30
Quote:
You can safely write to NTFS partitions in Linux if you upgrade the kernel to 2.6.15
are you sure about that or did they just not change the help file yet

2.6.15 NTFS Help File


soule
 
Old 01-20-2006, 08:19 AM   #15
Master of Reality
LQ Newbie
 
Registered: Sep 2005
Distribution: Gentoo
Posts: 26
Blog Entries: 1

Rep: Reputation: 15
I'm fairly sure hes right about it, so perhaps the help file is not updated. There is still some limitations (ie. cannot create new files or directories and some heavily fragmented files cant be edited.)
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
browsing ntfs partitions via ftp yus Linux - Networking 5 09-14-2005 09:28 AM
Resize NTFS with FTP Install? JSmith SUSE / openSUSE 2 01-12-2005 12:14 PM
Writing to NTFS through FTP? squall14716 Linux - General 2 10-24-2003 08:12 PM
NTFS and FTP .. oper82 Linux - Newbie 2 02-03-2003 10:28 PM
Using NTFS in an FTP server daleth Linux - Newbie 3 12-27-2002 08:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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