Samba help

Associate
Joined
18 Nov 2005
Posts
421
I've followed the guide to creating a Linux server on bit-tech.net, but when I add a user, it chucks up an error. Any fix for this?

EDIT: I was the root user when I was doing this, and using the terminal to add the user. When i add the pass, it chucks up an generic error - Cannot add user Peter. I was using xubuntu, the same distro in the guide
 
Last edited:
Umm, that's not really enough info for us to help much. What distro? Are you at the CLI or are you using GUI tools? Are you root when you're creating the user? What is the error it gives.
 
Does the username you are using in your smbpasswd command correspond to a user account on the system? Usernames (and pretty much everything else in UNIX) are also case-sensitive.
 
Thanks for the help, now I got a proftpd problem. I do what it says in the guide, and replace the default config with this config:
Code:
#
# /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
# To really apply changes reload proftpd after modifications.
# 

ServerName			"FTP Server"
Serverident                     on "FTP"
ServerType			standalone
DeferWelcome			off
TimesGMT                        off


MultilineRFC2228		on
#DefaultServer			on
ShowSymlinks			on

TimeoutNoTransfer		600
TimeoutStalled			600
TimeoutIdle			1200

DisplayLogin                    welcome.msg
DisplayFirstChdir               .message
ListOptions                	"-l"

DenyFilter			\*.*/

AllowForeignAddress             on
AllowRetrieveRestart            on

# Uncomment this if you are using NIS or LDAP to retrieve passwords:
#PersistentPasswd		off

# Uncomment this if you would use TLS module:
#TLSEngine 			on

# Uncomment this if you would use quota module:
#Quotas				on

# Uncomment this if you would use ratio module:
#Ratios				on

# Port 21 is the standard FTP port.
Port				21
SocketBindTight                 on

PassivePorts                    11000 20000


# 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)
MaxInstances			30

# Set the user and group that the server normally runs at.
User				nobody
Group				nogroup

# Umask 022 is a good standard umask to prevent new files and dirs
# (second parm) from being group and world writable.
Umask				022  022
# Normally, we want files to be overwriteable.
AllowOverwrite			on

AllowForeignAddress             on
AllowRetrieveRestart            on
AllowStoreRestart on

# Speed up the server, no DNS lookups, just plain ip's. Turn off when being hax0r3d.
UseReverseDNS off
IdentLookups off

DefaultRoot                     ~
ExtendedLog                     /var/log/proftpd.all ALL


# Delay engine reduces impact of the so-called Timing Attack described in
# http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
# It is on by default. 
DelayEngine 			off

<Anonymous ~ftp>
  User                          ftp
  Group                         nogroup
  UserAlias                     anonymous ftp
  DirFakeUser                   on ftp
  DirFakeGroup                  on ftp
  RequireValidShell             off
  MaxClients                    10
  DisplayLogin                  welcome.msg
  DisplayFirstChdir             .message
  AccessGrantMsg                "Anonymous access granted for user %u connecting."

  MaxClientsPerHost             1

  <Directory>
    #DenyAll
    TransferRate        RETR 50
    <Limit WRITE>
      DenyAll
    </Limit>
  </Directory>
When I restart proftpd, it fails and it says:
Code:
 * Stopping ftp server proftpd                                           [ OK ] 
 * Starting ftp server proftpd                                                   - warning: the DisplayFirstChdir directive is deprecated and will be removed in a future release.  Please use the DisplayChdir directive.
 - warning: the DisplayFirstChdir directive is deprecated and will be removed in a future release.  Please use the DisplayChdir directive.
 - Fatal: <Directory>: missing arguments on line 98 of '/etc/proftpd/proftpd.conf'
                                                                         [fail]
Can anyone help? (sorry about the nooby posts, I'm kinda new to *nix)
 
Does /root/.vnc/ exist? If not, try creating it with:
sudo mkdir /root/.vnc/

Presumably you're still root, so you'd have permission to write in root's home directory.
 
Back
Top Bottom