ProFTPd To Windows Over SAMBA

Mar 14, 2008

We've got a Linux box running ProFTPd reaches a Windows box over SAMBA. This works very well but when the client has a great number of files, the FTP Windows-based FTP clients they use don't always give accurate directory listings (if any at all). I know there's some bug in the way SAMBA works with Windows File Sharing but I don't know what the magic file number is that, when reached, prevents a proper directory listing. Does anyone know what this magic number is or if there's an available, tested fix for this?

View 3 Replies


ADVERTISEMENT

Plesk 11.x / Windows :: Does Backup Support Samba Share

Mar 31, 2014

The scenario is like this I have Plesk + IIS + windows server and I want to store Plesk backups to a partition in linux server. So I have created a samba share and mounted it under the windows server. the issue showing is it is not possible to write to samba shared partition.

View 2 Replies View Related

Samba Server :: Can Linux And Windows Exist On The Same Server?

Jan 10, 2008

I have a linux server for a video sharring site

The video encoder that I prefer to use will only work in a windows enviorment

The windows server would pass off the converted video to the Linux server.

Will a Samba server for Linux allow a Linux machine to connect and share files with a Windows machine work for this application.

Although it's probably a dumb question but can Linux and Windows exist on the same server?

View 3 Replies View Related

SAMBA

Apr 16, 2007

I'm currently trying out SAMBA, and having a few last minute issues:

I got both of my centos servers to run samba fine, the mount from serverA to serverB is great... the only problem is that it can't DIR/LS the mounted/shared folder for browsing and viewing. Here is my current smb.conf:

[global]
netbiosname = superpix
security = USER
password level = 4
os level = 64
domain master = yes
local master = yes
prefered master = yes
browsable = yes
writable = yes
locking = no
case sensitive = no
default case = lower
preserve case = yes
short preserve case = no
encrypt passwords = Yes
workgroup = superpix

[homes]
read only = no
browseable = no

[shared]
path = /san
interfaces = eth1 lo
hosts deny = ALL
hosts allow = 10.222.0.
browseable = yes
write list =root, admin
create mask = 0644
directory mask = 0777
public = yes
valid users = admin

I'm not sure what I'm doing wrong... but I can access the files in that folder fine from another server, i just can list/dir the darn thing.

View 3 Replies View Related

SAMBA Speed Up

Aug 3, 2007

how can we ridiculously speed up SAMBA connections?

View 6 Replies View Related

Map Network Drive By Using Samba

Jun 30, 2005

This is a little samba guide from my own experiences of how to map a network drive under windows 2000 to a Linux server. I am not technical expert and this guide is the result from my trail and error.

What's Samba?

Samba allows Linux computers to share files and printers across a network connection. By using its SMB protocol, your Linux box can appear in Windows Network Neighborhood or My Network Places just like any other windows machine. You can share files this way, as well as printers. By using samba on my home network, for example, my Windows machines have access to a printer directly hooked up to my Linux box, and my Linux box has access to a printer directly hooked up to one of my Windows machines. In addition, everyone can access everyone else's shared files. You can see how samba can be very useful if you have a network of both Windows as well as Linux machines.

My OSs

Windows 2000
RHEL 3 (Redhat Enterprise Linus)

My goal

Map a network drive to Linux servers, so that I can access the Linux files under windows 2000.

Installation

Most Linux should have Samba already installed. But if it hasn't install, you can find at in http://rpmfind.net or using up2date command "up2date -i samba". You can also get it at http://www.samba.org

Then you can install it by tying the following Command:

Install:

rpm -i samba.rpm

Upgrade:

rpm -U samba.rpm

Configuration

Samba conf file is located at /etc/samba/smb.conf, allows you to specify which resources on the Linux machine you wish to share and who they can be accessed by.

Samba provide a full version conf if it's fresh install. But most of the times, we don't really need all of these options. So I provide my own conf here, which is rather simple, but it makes things work.

[global]
workgroup = WORKGROUP
server string = LinuxBOX
hosts allow = your_windows_machine_IP
log file = /var/log/samba/%m.log
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

[Downloads]
comment = Downloads
path = /path_to_your_sharefolder
browseable = yes
writable = yes
public = yes
read only = no

[homes]
comment = My Home Directory
browseable = yes
writable = yes
public = yes
read only = no

[printers]
path = /var/spool/samba
public = yes
guest ok = yes
printable = yes
browseable = yes
writable = yes
read only = no

Just replace workgroup to your windows workgroup name, your_windows_machine_IP and /path_to_your_sharefolder. If you don't need printers sharing, you don't need to have printer section.

Setup Samba Users

Since we're using user level security, we need to setup samba users. This can be easily done by using Webmin. You can go to Server --> Samba --> Convert Unix users to Samba users, you can just covert all your existing Linux users and set them password under the icon "Edit Samba users and passwords" later.

If you don't use webmin, you can also type the following command:

cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd

smbpasswd username

Replace username with each of your user's usernames. You will then be prompted to enter a password for this user account.

Samba Service

Now, it's time to start your samba server:

service smb start
service smb stop
service smb restart

Once the computer is restarted or shutdown, the samba service won't start up again in next boot up. I use webmin to make it startup at boot time.

Windows 2000 Configuration

1. Under windows 2000, you can got to windows explorer --> Tools --> map a network drive
2. select drive letter
3. enter the path (e.g. your_server_ipDownloads)
4. click connect using different user name
5. enter your samba usernaem and password that you just set
6. You can connect to your Linux machine now!

This method work for me. If there is any correction or improvements, please let me know.

View 0 Replies View Related

SAMBA+LDAP Connection

Jun 29, 2009

I'm trying to setup a PDC Login server with SAMBA+LDAP (in separate servers).

How can I test if SAMBA is trying to login properly into the LDAP server?

View 1 Replies View Related

Getting Winbind To Work With Samba

Aug 1, 2008

Im running a redhat server with samba version 3.0.25b..

I dont think it even has winbind, and I need it to join the windows active domain so people can log in and access files etc..

ive searched everywhere to find a nice wget ftp url so i could get the rpm and just install the thing..but is nowhere to be found. I tried installing some random version of the winbind that I COULD find...but no luck, wouldnt work.

View 1 Replies View Related

SAMBA/LDAP Integration

Nov 17, 2008

I'm struggling hard to integrate a group of windows boxes to authenticate with a Linux samba/ldap server (with personal mapped drives as well).
I get stuck in this error:

root@LittleCode:/usr/share/smbldap-configure# smbldap-useradd -a -m moquist
Error looking for next uid in cn=NextFreeUnixId,dc=activespace,dc=local:value does not conform to assertion syntax at /usr/share/perl5/smbldap_tools.pm line 1071.
root@LittleCode:/usr/share/smbldap-configure#

View 1 Replies View Related

Samba Installation: Libtalloc.so.1

Aug 6, 2008

I am trying to install samba-3.2.1 from source.

To give a short background, I download the src zip and unpack it to local.

go into the file and run a
./autogen.sh
./configure --with-winbind --prefix=/usr/local/samba --with-smbwrapper --with-pam --with-pam-smbpass
make
make install

When I try to run
/usr/local/samba/sbin/smbd -D
I get this message
Error while loading shared libraries : libtalloc.so.1 : cannot open shared object file: no such file or directory

I searched online and found this solution, which sounds like they know what they are talking about..only problem is..I dont!

[url]

View 3 Replies View Related

System Error 53 Samba

Apr 26, 2007

I was wondering if anyone has came across this error when dealing with SAMBA.

[url]is the error and the 'fix'.

I have about 50users that can connect just fine, running sp2 (xp pro) but some other users that have xp home or media center can't. There running sp2 and they still get the above error. In the article i need to contact MS for the hotfix...

Any quick fixes other then maybe changing then workgroup?

Netbios is enabled

All can ping the server.

Z drive is OK for use (IE there PC doesnt have a Z drive in use)

View 3 Replies View Related

Samba Chown Operation Not Permitted

May 22, 2007

I'm currently running SAMBA on one my linux servers, and wanting to connect to it from another linux server.

1. Do I need to install SAMBA on the connecting server (client-side)?

2. I can see/mount the SAMBA folder just fine, I can delete,make,etc. The only thing I can't do on the client side is change ownership of a file or folder... even if I'm logged in as root.

View 3 Replies View Related

Preserving The Same Permissions With Samba Mount

Jan 15, 2007

how to preserve permissions the same 1:1 after mounting the remote resource with samba mount cause currectly the permissions are changing.

View 2 Replies View Related

Plesk 12.x / Linux :: Samba Add On Fails

Jun 8, 2015

I think the samba add on for Plesk 12 is not correctly implemented for CentOS 7.To get smb users added I first had to manually install the samba-client, since smbpasswd was missing:

Code:
yum install samba-client Next I had to manually run

Code:
chcon -R -t samba_share_t /var/www/vhosts/my-server.tld/ for each share to be able to access it...

View 1 Replies View Related

Samba :: Isolate Different Users In A Directory And Subdirectories

Jun 24, 2008

I am trying to isolate different users in a directory and subdirectories.

Case:-

Directory A --> Sub A
--> Sub B
--> Sub C

I want everybody to be able to access "Directory A" but limited access to "Sub A", "Sub B" and "Sub C". How can i achieve that?

Currently, all users that are able to access "Directory A" can go in "Sub A", "Sub B" and "Sub C".

View 2 Replies View Related

Samba :: Tree Connect Failed: NT_STATUS_BAD_NETWORK_NAME

Apr 11, 2008

I have configured samba on my server but when i access shared directory but i can't its gives error.......

Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.25b-1.el5_1.4]
Server not using user level security and no password supplied.
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

View 0 Replies View Related

Plesk 12.x / Linux :: How To Limit Samba Accesses To Certain IP / Ranges

Jul 18, 2014

Samba accesses can be restricted to certain IP / ranges through the access tab in the Plesk Samba extension screen.This builds the /etc/samba/ smb. conf.include file with entered information.All well and good so far.

This file contains the standard 'do not modify...' text, so making manual changes directly here is undesirable. In Plesk are some Linux commands such as /usr/local/psa/bin/php_handler through which permitted changes can be made from the command line.

Is there a similar command included which would allow a shell script to make changes in a supported manner like the /usr/local/psa/bin/php_handler file does? any changes the script makes can be seen in the Plesk Panel and unless admin changes them through the panel will be persistent.

View 2 Replies View Related

ProFTPd

Oct 12, 2009

I am running Proftpd on my RedHat. I have disabled anonymous login because i dont need it and its running fine.

I have created a user named test on the server and i try to connect it by typing ftp://myserver/ and then provide the id and pass.

Now it logged-in successfully but cant access any directories on the server. i have been Google around but really getting confused how i properly create a ftp user

i want the test user to access the following directories and he can be able to upload and download files from these directories

/home/usman/public_html/
/home/usman/public_ftp/
/home/usman/cgi-bin/

View 2 Replies View Related

ProFTPd

Jul 13, 2007

This isn't a major problem but I was just wondering something regarding how ProFTPd functions. I have received a complaint about a user uploading a script, the script creating files and directories, and the user not being able to CHMOD, delete, rename, or do anything to these files.

When files are created through scripts on my server, they are given a default owner permission with "www-data" for the user and group.

Since ProFTPd is set up to only modify files on certain owner permissions according to the user's FTP access, ProFTPd will not allow any other owner permission and if any other owner permissions exist, ProFTPd will not allow those files to be modified or changed in anyway.

Is there a way to fix this? I've been trying to figure it out but I can't.

Just for note, I am using proftpd-mysql and so every user is linked through a MySQL database.

View 5 Replies View Related

Proftpd

Mar 3, 2007

When connecting via an ftp client I want the directory listed to be /var/www/html but currently it's /home/username. I've tried changing the initial login directory with webmin to /var/www/html but to no avail. How would this be done?

View 1 Replies View Related

Plesk 12.x / Linux :: Setup VPM Tunneling - Access Samba Share From Server

Aug 18, 2014

I have a rented VPS with 2TB of disk space and a plesk license in order to host the sites that i develop and my sites, and found myself with around 1.8TB of free space, plesk samba management and plesk vpn management but with few missing pieces for my idea. My idea was to setup vpn tunneling between my laptop and desktop to plesk server and access samba share from the server like they were in my LAN.In the firewall I have opened only the classic mail and web ports (obviously plesk access too).

View 2 Replies View Related

ProFTPD Security

May 21, 2008

i use ProFTPD as FTP.

I use webmin as admin panel.

After installation, im worried about the default security config.

Also, i can log as anonym wich is ok, however i can't log using my unix user what i have to do?

Here's my config sample;

Quote:

# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName"Junky-Monkey"
ServerTypestandalone
DefaultServeron

# Port 21 is the standard FTP port.
Port21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask022

# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances30

# Set the user and group under which the server will run.
Usernobody
Groupnobody

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot ~

# Normally, we want files to be overwriteable.
<Directory />
AllowOverwriteon
</Directory>

# A basic anonymous configuration, no upload directories. If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~ftp>
Userftp
Groupftp

# We want clients to be able to login with "anonymous" as well as "ftp"
UserAliasanonymous ftp

# Limit the maximum number of anonymous logins
MaxClients10

# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLoginwelcome.msg
DisplayFirstChdir.message

# Limit WRITE everywhere in the anonymous chroot
<Limit WRITE>
DenyAll
</Limit>
</Anonymous>

View 1 Replies View Related

ProFTPD And Webmin

Jul 17, 2007

I am trying to set up the FTP on my VPS. I am using webmin control pannel and os CentOs 4.

I have created a user called mic and made the home dir of the user /var/www/. then placed the user in the group ftpusers.

I then went into the proFTPD server config but of webadmin and set the user and group. i then tryed to log in to the FTP. SUCSESS.

BUT .... wen i tryed to upload somethink it give me permission denied. and when i try to delete somethink Access denied.

What did i do wrong?

View 5 Replies View Related

Proftpd And Plesk

Mar 22, 2007

I would like to setup proftpd with mod_sql to access a mysql database for ftp accounts instead of using pam. The server has pleask 8.1 installed with psa-proftpd-xinetd-1.3.0 installed. How do I recompile the psa-proftpd with --with-modules=mod_sql option? Here is the current proftpd configure command:

configure --localstatedir=/var/run --with-libraries=/usr/lib64 --sysconfdir=/etc --with-modules=mod_ratio:mod_readme:mod_quota --with-modules=mod_ratio:mod_readme:mod_quota:mod_tls --enable-buffer-size=8192 --prefix=/usr CC=gcc CFLAGS=-O -pipe -O3 -fexpensive-optimizations -fstrength-reduce -pipe -DPLESK_Linux -I/usr/include/libxml2 -I/home/builder/buildbot/psa-aiconfig-810-fc4x64/build/plesk/lib/dist/usr/include -I/usr/include CXXFLAGS=-O -pipe -O3 -fexpensive-optimizations -fstrength-reduce -pipe -DPLESK_Linux -I/usr/include/libxml2 -I/home/builder/buildbot/psa-aiconfig-810-fc4x64/build/plesk/lib/dist/usr/include -I/usr/include CXX=g++ LDFLAGS= --enable-ltdl-convenience --no-create --no-recursion

View 1 Replies View Related

Proftpd RLimitCPU

Jan 31, 2007

anyone used this directive?

how did you decide on a decent value to set the limits at?

ideally id just like to stop processes taking up too much cpu, but it seems you cant set it as a %..

View 1 Replies View Related

Mysql_mod Missing For ProFTPD

Jul 18, 2007

Trying to install ProFTPD with mysql, the problem is after installing it and adding the lines in the config file to use MySQL the service fails to start. The error Im getting is:

"unknown configuration directive 'SQLAuthTypes'"

So it seems like it doesnt recongize the function needed to use mysql with proftpd, which is in mysql_mod.c. I did proftpd -l and the mysql_mod.c was not listed, I did a search on the whole box and couldnt find mysql_mod anywhere. Im on Fedora Core 6 and tried to install proftpd with yum:

yum install proftpd proftpd-mysql

Do I have to compile from source to get this to work? Or did I miss installing something else that would have mysql_mod.c present? I currently have mysql installed and running, tested the login info I had in the config file and everything works on the mysql side.Silly

View 1 Replies View Related

Proftpd :: Set Up Virtual Hosts

Jun 8, 2009

What I want to do is setup virtualhosts for my clients and set the user/group that their files upload as. been on google and im guessing ill need to setup mod_auth?

View 2 Replies View Related

ProFTPd :: Set Group And Permissions

Nov 15, 2008

Currently I have

Umask 027

The problem is, how do I get the group to be set as apache on a file/dir upload? I really do not like having other permissions set, as it can be a security risk, allowing others to access someone else's files.

Another issue is, I can't remove privileges, but I can add them.

copy of proftpd.conf:

Code:
ServerName "FTP"
ServerType standalone

Port 21
PassivePorts 35000 35999
UseReverseDNS off
TimesGMT off
TimeoutLogin 120
TimeoutIdle 600
TimeoutNoTransfer 900
TimeoutStalled 3600

#MaxCients 20 "Sorry, the maximum number of allowed users are already connected (%m)"
#MaxClientsPerHost 2
#MaxClientsPerUser 2
MaxConnectionsPerHost 6 "Sorry, you may not have more then 6 connections open at a time"
MaxHostsPerUser 6 "Sorry, you may not connect more than 6 times"

ScoreboardFile /var/run/proftpd/proftpd.pid

TransferLog /var/log/proftpd/xferlog.legacy
LogFormat default "%h %l %u %t "%r" %s %b"
LogFormat auth "%v [%P] %h %t "%r" %s"
LogFormat write "%h %l %u %t "%r" %s %b"

#DON'T modify this log format. Its used by DirectAdmin to determine user usage
LogFormat userlog "%u %b"
ExtendedLog /var/log/proftpd/IP.bytes WRITE,READ userlog

AuthUserFile /etc/proftpd.passwd
DefaultServer on

#AuthPAM off

<IfModule mod_tls.c>
TLSEngine on
TLSLog /var/log/proftpd/proftpd.tls.log
TLSProtocol TLSv1
TLSVerifyClient off
TLSRequired off

#Certificates
TLSRSACertificateFile /etc/exim.cert
TLSRSACertificateKeyFile /etc/exim.key
#TLSCACertificateFile /etc/ftpd/root.cert.pem
</IfModule>

<Global>
DeferWelcome on

RequireValidShell no

DefaultRoot ~
DirFakeUser on ftp
DirFakeGroup on ftp

User ftp
Group ftp
#UserAlias anonymous ftp

AllowStoreRestart on
AllowRetrieveRestart on

ListOptions -a

Umask 027 022
DisplayLogin welcome.msg
DisplayChdir readme
AllowOverwrite on
IdentLookups off
ExtendedLog /var/log/proftpd/access.log WRITE,READ write
ExtendedLog /var/log/proftpd/auth.log AUTH auth

#
# Paranoia logging level....
#
#ExtendedLog /var/log/proftpd/paranoid.log ALL default

</Global>

Include /etc/proftpd.vhosts.conf

View 4 Replies View Related

Proftpd Fail On Start

Oct 6, 2007

I wanted to upgrade proftpd and dit this.

I followed an how-to on directadminforums:

Code:
cd /usr/local/directadmin/customapache/
wget ftp://ftp.proftpd.org/distrib/source....3.1rc2.tar.gz
tar xzf proftpd-1.3.1rc2.tar.gz
rm -rf proftpd-1.3.1rc2.tar.gz
cd proftpd-1.3.1rc2
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run --with-modules=mod_ratio:mod_readme:mod_tls
make
make install
perl -pi -e "s/^AuthPAM on/#AuthPAM on/g" /etc/proftpd.conf
/etc/rc.d/init.d/proftpd restart
I changed the proftpd-1.3.1rc2 version to the newest version of proftpd.org

When I run /etc/init.d/proftpd start, I get the following:

Code:
Starting proftpd: - mod_tls/2.1.2: compiled using OpenSSL version 'OpenSSL 0.9.7k 05 Sep 2006' headers, but linked to OpenSSL version 'OpenSSL 0.9.7a Feb 19 2003' library
- Fatal: unable to load module 'mod_tls.c': Operation not permitted
[FAILED]

View 4 Replies View Related

OpenSSL - CURL, Httpd And Proftpd

Apr 14, 2009

so I got OpenSSL 0.9.8k up and installed, no issued:

Quote:

# openssl
OpenSSL> version
OpenSSL 0.9.8k 25 Mar 2009
OpenSSL>

Rebuilt cURL (and then php), httpd and proftpd but all of them are still linking to the older libraries for some reason

Quote:

# curl -V
curl 7.19.4 (x86_64-unknown-linux-gnu) libcurl/7.19.4 OpenSSL/0.9.8g zlib/1.2.3
Protocols: tftp ftp telnet dict ldap http https ftps
Features: IPv6 Largefile NTLM SSL libz

Quote:

[Tue Apr 14 00:11:03 2009] [notice] Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8g DAV/2 PHP/5.2.9 Apache configured -- resuming normal operations

Quote:

Starting proftpd: - mod_tls/2.2.1: compiled using OpenSSL version 'OpenSSL 0.9.8i 15 Sep 2008' headers, but linked to OpenSSL version 'OpenSSL 0.9.8g 19 Oct 2007' library

proftpd has its own set of issues obviously built with i headers and linked to g headers. Any ideas wtf I did? I recomplined and restarted everything. I removed the g and i libraries completely. OpenSSH seems happy and nothing is actually "wrong", the server is working fine but I'm really anal retentive this way...it's kinda how I feel "safer" at the OS level.

View 3 Replies View Related

Proftpd Install Issue On Cent Os 5

Feb 22, 2008

I have been attempting to install Proftpd on linux(cent os 5 32 bit). The issue is i have to use proftpd i can't use vsftp or pure ftp I have downloaded the RPM. I downloaded this one to the server [url]. and i ran the command rpm -ivh proftpd* and it did its thing for a second and told me it was done. But when i run the command /etc/init.d/proftpd start or restart it doesn't wanna start. It just tells me failed. Can anyone help me with this? I'm not sure what else i can do.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved