LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-14-2005, 01:53 PM   #16
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985

OK OK OK, let's hang on now.... you're getting each other a little lost now.

you want to share an NTFS via linux on to a LAN. and it's the via part that you're forgetting. samba can do whatever you want it to do, but only once you can get to that data from linux. which you can't do. samba and mounting NTFS drives with write access are totally different areas. samba will NOT have any bearing on being able to write to NTFS under linux.
 
Old 03-14-2005, 02:10 PM   #17
wael_nasreddine
Member
 
Registered: Jun 2004
Location: France
Distribution: debian sarge
Posts: 109

Original Poster
Rep: Reputation: 15
yeah but i can make it fat32 that's not a problem but is it reliable or not that's the question
 
Old 03-14-2005, 02:52 PM   #18
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Rep: Reputation: 30
Quote:
well the problem is i already have a web/dns/ftp/mail server on the same box
it runs debian sarge + VHCS2.4 so i can make it like this if i want by simply protecting the directory with password or a php scripts to monitor the ips also

that's why i ask, in fact all i want to do is to get rid of the cables on my laptop, i have bough a wifi router to get rid of the cables and now i'm stuck with the external H.D.D cables
Well you know that there are routers or "stations" which you can hook up usb things to them to share them via wireless? They get their own ip and you just hook up to them. Not sure how well this is supported, but technically one of these stations with hdd support (flashdisk, etc...) should be able to get connected to the hard drive and then let you access it. Just search google. (i might be imagining things but i recall this working. i know for sure that webcams and printers are supported, and that some routers have usb slots.) Just check it out.
btw isn't that vhcs thing just like webmin, dunno been reading some of it, thinking about giving it a spin.
Quote:
yeah but i can make it fat32 that's not a problem but is it reliable or not that's the question
It should be, but just remember that you have a 4 gig file limit. I've had problems with an external hdd, but i think it was because i tried putting in ext3, kept on corrupting itself, bad times.
Quote:
OK OK OK, let's hang on now.... you're getting each other a little lost now.
i feel like an aristocrat, talk alot, make no sense. still it's fun :P

Last edited by bobbens; 03-14-2005 at 03:03 PM.
 
Old 03-14-2005, 03:27 PM   #19
wael_nasreddine
Member
 
Registered: Jun 2004
Location: France
Distribution: debian sarge
Posts: 109

Original Poster
Rep: Reputation: 15
hmmmmm.. ok thank you for the answer,
and yes VHCS is like webmin but more advanced, if you plan to install it, go with debian sarge and here's i provide you with the scripts to install it in 5 minutes (normally takes hours )


fist download debain sarge netinst install the basic system (you can install X server but it's not necessary to install any of the other compasent the script do it for you

script
Code:
#VHCS installation script by wael_nasreddine (Gandalf)

#making directories, apt-get the needed packages etc...

mkdir /root/vhcs_tmp
mkdir /root/vhcs_tmp/install
cd /root/vhcs_tmp/install
apt-get update
apt-get upgrade -y
apt-get remove  -y lpr nfs-common portmap pidentd pcmcia-cs pppoe pppoeconf ppp pppconfig
update-inetd --remove daytime
update-inetd --remove telnet
update-inetd --remove time
update-inetd --remove finger
update-inetd --remove talk
update-inetd --remove ntalk
update-inetd --remove ftp
update-inetd --remove discard

apt-get install -y ssh postfix postfix-tls proftpd-mysql courier-authdaemon courier-base courier-imap courier-

maildrop courier-pop libberkeleydb-perl libcrypt-blowfish-perl libcrypt-cbc-perl libcrypt-passwdmd5-perl libdate-

calc-perl libdate-manip-perl libmime-base64-perl libdbd-mysql-perl libdbi-perl libio-stringy-perl libmail-sendmail-

perl libmailtools-perl libmd5-perl libmime-perl libnet-dns-perl libnet-netmask-perl libnet-perl libnet-smtp-server-

perl libperl5.8 libsnmp-session-perl libterm-readkey-perl libtimedate-perl perl perl-base perl-modules bind9 diff 

gzip iptables libmcrypt4 mysql-client mysql-common mysql-server patch php4 php4-mcrypt php4-mysql php4-pear procmail 

tar original-awk libterm-readpassword-perl libsasl2-modules libsasl2 sasl2-bin apache2 apache2-common apache2-mpm-

prefork libapache2-mod-php4 bzip2


#getting the current vhcs package change it if new version is available

wget http://puzzle.dl.sourceforge.net/sou...cs-2.4.tar.bz2

#decompressing archive and installing it

bunzip2 vhcs-2.4.tar.bz2
tar -xvvf vhcs-2.4.tar
cd ./vhcs-2.4
make install
cp -R /tmp/vhcs2/etc/* /etc
cp -R /tmp/vhcs2/var/* /var
cp -R /tmp/vhcs2/usr/* /usr


#changing the mysql password ATTENTION: REPLACE $mysqlpass with you password including quotes like "password"

mysqladmin -u root -p password "new_mysql_password_here"


#reupdating the apt-get list/system

apt-get update
apt-get upgrade -y
apt-get clean

#now you have to make something manually, in case of the execuation of the next line failed, you have to do exactly as this topic says -->  http://vhcs.net/vhcs/en/support/foru...bug+discovered

/var/www/vhcs2/engine/setup/vhcs2-setup

#the below 4 line must be executed!!!!
echo "extension=mcrypt.so" >> /etc/php4/apache2/php.ini
echo "extension=mysql.so" >> /etc/php4/apache2/php.ini

echo "Include /etc/apache2/sites-available/vhcs2.conf" >> /etc/apache2/httpd.conf
/etc/init.d/apache2 restart




#from this line it's a comments
--------------------------------------
before begining the installation put the below links at the BEGINING of the file /etc/apt/sources.list
comment any existing source by simply adding # before it


#deb file:///cdrom/ sarge main

deb http://ftp.debian.org/debian/ testing main
deb-src http://ftp.debian.org/debian/ testing main
deb http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free
deb http://apt.scunc.it/ sarge main
deb http://security.debian.org/ testing/updates main

Last edited by wael_nasreddine; 03-14-2005 at 03:28 PM.
 
Old 03-14-2005, 03:56 PM   #20
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Rep: Reputation: 30
Quote:
Originally posted by wael_nasreddine
hmmmmm.. ok thank you for the answer,
and yes VHCS is like webmin but more advanced, if you plan to install it, go with debian sarge and here's i provide you with the scripts to install it in 5 minutes (normally takes hours )


fist download debain sarge netinst install the basic system (you can install X server but it's not necessary to install any of the other compasent the script do it for you

script
Code:
#VHCS installation script by wael_nasreddine (Gandalf)

#making directories, apt-get the needed packages etc...

mkdir /root/vhcs_tmp
mkdir /root/vhcs_tmp/install
cd /root/vhcs_tmp/install
apt-get update
apt-get upgrade -y
apt-get remove  -y lpr nfs-common portmap pidentd pcmcia-cs pppoe pppoeconf ppp pppconfig
update-inetd --remove daytime
update-inetd --remove telnet
update-inetd --remove time
update-inetd --remove finger
update-inetd --remove talk
update-inetd --remove ntalk
update-inetd --remove ftp
update-inetd --remove discard

apt-get install -y ssh postfix postfix-tls proftpd-mysql courier-authdaemon courier-base courier-imap courier-

maildrop courier-pop libberkeleydb-perl libcrypt-blowfish-perl libcrypt-cbc-perl libcrypt-passwdmd5-perl libdate-

calc-perl libdate-manip-perl libmime-base64-perl libdbd-mysql-perl libdbi-perl libio-stringy-perl libmail-sendmail-

perl libmailtools-perl libmd5-perl libmime-perl libnet-dns-perl libnet-netmask-perl libnet-perl libnet-smtp-server-

perl libperl5.8 libsnmp-session-perl libterm-readkey-perl libtimedate-perl perl perl-base perl-modules bind9 diff 

gzip iptables libmcrypt4 mysql-client mysql-common mysql-server patch php4 php4-mcrypt php4-mysql php4-pear procmail 

tar original-awk libterm-readpassword-perl libsasl2-modules libsasl2 sasl2-bin apache2 apache2-common apache2-mpm-

prefork libapache2-mod-php4 bzip2


#getting the current vhcs package change it if new version is available

wget http://puzzle.dl.sourceforge.net/sou...cs-2.4.tar.bz2

#decompressing archive and installing it

bunzip2 vhcs-2.4.tar.bz2
tar -xvvf vhcs-2.4.tar
cd ./vhcs-2.4
make install
cp -R /tmp/vhcs2/etc/* /etc
cp -R /tmp/vhcs2/var/* /var
cp -R /tmp/vhcs2/usr/* /usr


#changing the mysql password ATTENTION: REPLACE $mysqlpass with you password including quotes like "password"

mysqladmin -u root -p password "new_mysql_password_here"


#reupdating the apt-get list/system

apt-get update
apt-get upgrade -y
apt-get clean

#now you have to make something manually, in case of the execuation of the next line failed, you have to do exactly as this topic says -->  http://vhcs.net/vhcs/en/support/foru...bug+discovered

/var/www/vhcs2/engine/setup/vhcs2-setup

#the below 4 line must be executed!!!!
echo "extension=mcrypt.so" >> /etc/php4/apache2/php.ini
echo "extension=mysql.so" >> /etc/php4/apache2/php.ini

echo "Include /etc/apache2/sites-available/vhcs2.conf" >> /etc/apache2/httpd.conf
/etc/init.d/apache2 restart




#from this line it's a comments
--------------------------------------
before begining the installation put the below links at the BEGINING of the file /etc/apt/sources.list
comment any existing source by simply adding # before it


#deb file:///cdrom/ sarge main

deb http://ftp.debian.org/debian/ testing main
deb-src http://ftp.debian.org/debian/ testing main
deb http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free
deb http://apt.scunc.it/ sarge main
deb http://security.debian.org/ testing/updates main
Yeah i saw that at the website, you have to use the vhcs daemon as an intermediatary between the protocols and the server. Looks complicated, when i have time i'll reinstall my backup server and attempt to install vhcs and if it's good enough i'll eventually format my server and attempt to use it. Sort of scared of losing my current set up right now, which works soo fine.
 
Old 03-14-2005, 04:22 PM   #21
wael_nasreddine
Member
 
Registered: Jun 2004
Location: France
Distribution: debian sarge
Posts: 109

Original Poster
Rep: Reputation: 15
yeo and we (me and a friend of mine) building the paypal script to auto sell/create accounts (reseller to users only at the moment)
will be released soon
 
Old 03-16-2005, 04:34 PM   #22
wael_nasreddine
Member
 
Registered: Jun 2004
Location: France
Distribution: debian sarge
Posts: 109

Original Poster
Rep: Reputation: 15
ok back to my problem now, i'm trying to get the HDD be shared on network (even n read only mode) i've succeded to get windows see the shared folders of the server, i can access only the printer though
the external hdd is mounted to /media/usb0 and /home/wael/iomeg_hdd is just an ln -s of /media/usb0
everytime i try to access it i get an error that i don't have the enough permissions to access it

here i quote my /etc/samba/smb.conf & my /etc/fstab

hope someone tells me what's wrong

/etc/samba/smb.conf
Code:
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which 
# are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash) 
# is a comment and is ignored. In this example we will use a #
# for commentary and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not many any basic syntactic 
# errors. 
#

#======================= Global Settings =======================

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = MSHOME

# server string is the equivalent of the NT Description field
   server string = %h server (Samba %v)

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
;   wins support = no

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
   dns proxy = no

# What naming service and in what order should we use to resolve host names
# to IP addresses
;   name resolve order = lmhosts host wins bcast


#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Put a capping on the size of the log files (in Kb).
   max log size = 1000

# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
;   syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
   syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d


####### Authentication #######

# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/ServerType.html in the samba-doc
# package for details.
;   security = user
security = share

# You may wish to use password encryption.  See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
   encrypt passwords = false

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.  
   passdb backend = tdbsam guest

   obey pam restrictions = yes

   guest account = nobody
   invalid users = root

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
;   unix password sync = no

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Augustin Luton <aluton@hybrigenics.fr> for
# sending the correct chat script for the passwd program in Debian Potato).
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
;   pam password change = no


########## Printing ##########

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
;   load printers = yes

# lpr(ng) printing. You may wish to override the location of the
# printcap file
;   printing = bsd
;   printcap name = /etc/printcap

# CUPS printing.  See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
;   printing = cups
;   printcap name = cups

# When using [print$], root is implicitly a 'printer admin', but you can
# also give this right to other users to add drivers and set printer
# properties
;   printer admin = @ntadmin


######## File sharing ########

# Name mangling options
;   preserve case = yes
;   short preserve case = yes


############ Misc ############

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m

# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/speed.html
# for details
# You may want to add the following on a Linux system:
#         SO_RCVBUF=8192 SO_SNDBUF=8192
   socket options = TCP_NODELAY

# The following parameter is useful only if you have the linpopup package
# installed. The samba maintainer and the linpopup maintainer are
# working to ease installation and configuration of linpopup and samba.
;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &

# Domain Master specifies Samba to be the Domain Master Browser. If this
# machine will be configured as a BDC (a secondary logon server), you
# must set this to 'no'; otherwise, the default behavior is recommended.
;   domain master = auto

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash

#======================= Share Definitions =======================

[homes]
   comment = Home Directories
   browseable = yes

# By default, the home directories are exported read-only. Change next
# parameter to 'yes' if you want to be able to write to them.
   writable = yes

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
   create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
   directory mask = 0700

# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   writable = no
;   share modes = no

[printers]
   comment = All Printers
   browseable = no
   path = /tmp
   printable = yes
   public = no
   writable = no
   create mode = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# Replace 'ntadmin' with the name of the group your admin users are
# members of.
;   write list = root, @ntadmin

# A sample share for sharing your CD-ROM with others.
;[cdrom]
;   comment = Samba server's CD-ROM
;   writable = no
;   locking = no
;   path = /cdrom
;   public = yes

# The next two parameters show how to auto-mount a CD-ROM when the
#	cdrom share is accesed. For this to work /etc/fstab must contain
#	an entry like this:
#
#       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
#
# The CD-ROM gets unmounted automatically after the connection to the
#
# If you don't want to use auto-mounting/unmounting make sure the CD
#	is mounted on /cdrom
#
;   preexec = /bin/mount /cdrom
;   postexec = /bin/umount /cdrom

[IOMEGA_HDD]
comments= IOMEGA EXTERNAL HDD
browsable = yes
writable = yes
security = share
public = yes
path = /home/wael/iomega_hdd

/etc/fstab
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda6       /               ext3    defaults,errors=remount-ro 0       1
/dev/hdb1       /var            ext3    defaults        0       2
/dev/hda5       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/hdd        /media/cdrom1   iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
/dev/sda1	/media/usb0	auto	defaults	0	0
 
Old 03-16-2005, 07:22 PM   #23
wael_nasreddine
Member
 
Registered: Jun 2004
Location: France
Distribution: debian sarge
Posts: 109

Original Poster
Rep: Reputation: 15
ok i've tried to inspect the logs, i found that since the hard disk is NTFS it's always mounted with root:root and can't chown it because it's read only, so in the logs always tells that the user nobody don't have access can't chdir(/media/iomega_hdd)
any solutions to make samba chdir as a root???? without making windows user enters the root password???
thanks
 
  


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
Mounting external Firewire NTFS HDD & Permissions Ganza Linux - Newbie 9 11-06-2005 07:39 AM
Dual boot XP(internal IDE HDD) Debian(external USB-IDE HDD) using boot.ini PolarDog Linux - Laptop and Netbook 2 07-01-2005 09:50 PM
External USB HDD with captive-ntfs alfonx Linux - Software 0 11-13-2004 01:20 PM
Accessing files from WindowsXP NTFS external firewire hdd... shmegegge Linux - Newbie 19 10-05-2004 06:05 AM
Installing Debian on External HDD h0meb0y25 Debian 2 04-29-2004 12:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:02 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