siliconshaman (
siliconshaman) wrote in
linux4all2009-12-25 11:29 pm
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
arrggh!!
Ok, somebody please help me before I go insane[er]...
How do I set up an External USB NTFS HDD to act as a Samba share? [or at least accessable via a wireless network froma windows xp & vista box]
I've *done* all the recommended steps, set it up within samba-server with full read/write permissions and enable ntfs external write support. Does it work? No it does not...both linux and windows boxes come back with 'network access denied' error. They can *see* the drive, and sub-directories on it..but they cannot access it. Even logging with my root password won't get me access. It refuses to acknowledge any and all passwords as viable.
And when I remote in VNC and use the properties menu on the drive, the permissions tab for drive comes back a "permissions for drive 'My Book' are unable to be determined"...so I'm sorta assuming that it defaults to 'paranoid-as-hell' mode and denies access to the network unless told otherwise.
And yet...the internal drive is just fine...no problems.
help?!
How do I set up an External USB NTFS HDD to act as a Samba share? [or at least accessable via a wireless network froma windows xp & vista box]
I've *done* all the recommended steps, set it up within samba-server with full read/write permissions and enable ntfs external write support. Does it work? No it does not...both linux and windows boxes come back with 'network access denied' error. They can *see* the drive, and sub-directories on it..but they cannot access it. Even logging with my root password won't get me access. It refuses to acknowledge any and all passwords as viable.
And when I remote in VNC and use the properties menu on the drive, the permissions tab for drive comes back a "permissions for drive 'My Book' are unable to be determined"...so I'm sorta assuming that it defaults to 'paranoid-as-hell' mode and denies access to the network unless told otherwise.
And yet...the internal drive is just fine...no problems.
help?!
From start...
first, you have to determine if the problem is related to the drive/NTFS or the Samba share. To test that:
- If you share a local directory such as /tmp, does that work via Samba?
- As a non-root user, can you access the USB HDD and all its files locally (without Samba)?
Are there differences for read or write actions (i.e. reading files works, writing files fails)?
Then, NTFS has its own system of file access permissions, which means that the user account which was used to mount the disc may not have full access to the share. I recommend a different filesystem. vfat has the advantage of working on all operating systems, extX is best for Linux, but requires you to have the same user ids on all systems.
For Samba, for you setup a "guest" based configuration may be best, if you not require any security features (i.e. different accounts with different permissions). The samba server uses a special user account to access files and this account requires permissions to access files to share files. For details, read the documentation or ask some samba gurus.
BTW, I doubt that there are "recommended steps" for such a setup... ;-)