Server :: Script That Checks If Added Username Valid

Nov 29, 2010

How to do a small script which checks that a username can be a username. I am talking about the special characters and spaces which can't be used when creating a username. So a user writes:

"kevin little" in this case this can't be a username as it contains space.
or
"kevinlittle" in this case this can't be a username as it contains special character ''.
or
"kevin_little" in this case it can be a username as there are only accepted characters.

View 5 Replies


ADVERTISEMENT

Server :: Sendmail Sometimes Does No Dnsbl Checks

Apr 2, 2010

I am running Sendmail server for SMTP. I included dnsbl form spam filtering and it works well.

Quote:

But sometimes it seems that sendmail just doesn't check the dnsbl. I was capturing the communication and I find out that several times the client just send the message and the sendmail does not even send a packet for check it in dnsbl. The whole SMTP session was completed without one blacklist check?

I use FEATURE(`delay_checks')dnl for allowing authenticated clients to pass the filters. Can this cause that the SMTP session is completed to fast and sendmail just has no time to check the dnsbls? (the check is delayed)

View 3 Replies View Related

General :: No Valid Partition Xen Server?

Dec 29, 2010

Attempting to move from Xen to VMware, have dd old xen disk to image file and loaded in vmware. The disk is visible when running from a knoppix rescue disk however it can only be mounted as /dev/sda

On the Xen vm fdisk -l shows /dev/sda as:
Disk /dev/sda1 doesn't contain a valid partition table

This also reflects in the DD image. I'm assuming this is because it was part of a volume group ?? on the Xen Server. As it is mounted as /dev/sda on the knoppix rescue cd I can't run grub or seem to mount it as /dev/sda1 after recreating the partition in fdisk. How can I reinstall grub on this and get it to boot ?

View 1 Replies View Related

Server :: Procmail Verify Email Address Is Valid?

Feb 10, 2011

We use procmail to reformat and filter email messages sent from many lead capture websites where the clients enter their reply email address manually.When we receive the message at our application we send a welcome email, and receive back the Undeliverable Email message where the clients entries are invalid, but I would like to be able to kill messages with undeliverable email addresses on our mail server before they are delivered to our application.I have found discussions on filtering masqueraded addresses, but since the IP of the sending system is not related to the entered client's email address, this does not appear to help. I would think that it should be able to query the email server to identify if the address is valid.

View 1 Replies View Related

General :: Just Added Ssl To Apache Web Server

Jan 7, 2010

When I run lsof -i I see several instances of httpd, however some are http and some are https. How do I configure my httpd.conf to start only https? I am essentially running copies on port 80. I just want to run all my html pages in 443.

View 1 Replies View Related

Server :: Error - Cannot Find A Valid Baseurl For Repo - Addons ?

Jan 3, 2010

I recently did my first installation of centos on a vm. I tried playing around for a while but when I tried doing an update it says Determining fastest mirrors for a while then gave me Could not retrieve mirrorlist [url]

Error was
[1] 13506
[2] 13507

Cannot find a valid baseurl for repo:addons

View 12 Replies View Related

Server :: Error: Cannot Find A Valid Baseurl For Repo: Base

Apr 18, 2011

When trying to run 'yum update' or 'yum install' i get the following message:

Quote:

# yum update
Loaded plugins: fastestmirror, kmod
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.

[code]....

View 3 Replies View Related

Server :: Sending Valid Email / End Up In The Recipient's Spam Folder?

Sep 29, 2010

All the emails I send from my linux server end up in the recipient's spam folder....Although I have tried many howtos etc and checked all blacklists... It doesn't work...

View 3 Replies View Related

Server :: Setup An Ssh Server That Doesn't Require A Username,password Or Cert To Login?

Jun 22, 2010

Is it possible to somehow setup an ssh server that doesn't require a username,password or cert to login?I wish to provide shell access to a console program, which will prompt for a username and password.Encryption is essential though, and users must not be able to snoop in on each other

View 9 Replies View Related

General :: Added HDD - Server Fails To Restart ?

Apr 27, 2010

I have a issue that could get me fired, so I would appreciate your input. My knowledge about linux is limited

The company I work for has a Dell Poweredge 6850 that keeps pretty much everything (databases, websites, etc).

The server had a Virtual Drive created from 2 Physical Drives. Since the HDD space was getting low, we got a new drive, inserted it, formatted and rebooted the system.

But the system now refuses to start, giving an FAILED message, something related to EXT2 partition that cannot be read at /dev/hda1.

View 2 Replies View Related

OpenSUSE Network :: Error From Yast2 HTTP Server - Hostname Not Valid

Nov 6, 2010

I've been running a SuseStudio-built VM for a few weeks with no issues. I built a new one recently, and now I can't configure a new vhost in Apache using the http-server module. It gives me this error. Screen shot 2010-11-06 at 11.42.24 AM.png. Why YaST suddenly decided that my hostnames aren't valid?

View 1 Replies View Related

Server :: Get Postfix To Deliver Valid Emails To Maildir And Relay Remaining?

Jan 20, 2010

I got a weird postfix setup question? This is a separate server to the one I posted about earlier today.

I need to setup a postfix server which will accept emails for local know address (full addresses) and deliver them straight to the users maildir.

Any unknown addresses (however for the same domain), needs to be relayed to another server.

This is a bit of a special setup as there is no fixed Internet connection to the server. So the plan is that local email get delivered straight away whilst emails to the same @domain, but that doesn't exist in the user tables get put in the hold queue and is later relayed to server number 2 when a connection is available.

I am using mysql to retrieve all my settings into postfix.

View 3 Replies View Related

General :: Fstab Added To RAID 0 - Server Cannot Restart

May 5, 2011

I made a software RAID 0. It works fine, but when I add it to fstab and reboot the server, I can't restart the server.
Code:
# cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda5 swap swap defaults 0 0
/dev/md0 /vz ext3 defaults 0 0

When I go to rescue mode and delete /dev/md0 from fstab, I can restart, but I get this when I try to mount it again:
Code:
mount: you must specify the filesystem type

So I try to make it to a ext3
Code:
# mkfs.ext3 /dev/md0
mke2fs 1.39 (29-May-2006)
mkfs.ext3: Device size reported to be zero. Invalid partition specified, or partition table wasn't reread after running fdisk, due to a modified partition being busy and in use. You may need to reboot to re-read your partition table.
#fdisk /dev/md0
Unable to read /dev/md0

View 4 Replies View Related

Server :: Getting Error When LDAP User Added Through Webmin

Apr 1, 2010

I have installed webmin. I am configuring ldap server using webmin gui. when i try to add user by ldap user and group I get following error. Failed to save user; Failed to add user to ldap database; modification required authentication. I am new in ldap configuration and hope for best reply.

View 1 Replies View Related

CentOS 5 Hardware :: Added HDD - Server Fails To Restart

Apr 27, 2010

I have a issue that could get me fired, so I would appreciate your input. My knowledge about linux is limited
The company I work for has a Dell Poweredge 6850 that keeps pretty much everything (databases, websites, etc). The server had a Virtual Drive created from 2 Physical Drives. Since the HDD space was getting low, we got a new drive, inserted it, formatted and rebooted the system. But the system now refuses to start, giving an FAILED message, something related to EXT2 partition that cannot be read at /dev/hda1

View 1 Replies View Related

Server :: Block Connections To Apache If Client Doesn't Have Valid Request Headers?

Feb 8, 2011

My server gets ddos attacks. I dig into access logs and I saw that attacker ips doesn't have valid requests headers, like their browser application info or requested url info.I want to close those connections immediately, and if it's possible block those ips for a time period.Can I do that with Apache and iptables?I searched on the internet but couldn't find useful results. Probably couldn't search for the right words.

View 2 Replies View Related

CentOS 5 Server :: Samba 3.0.33-3.29.el5_5 + Winbind: Cannot Use UNIX Groups As Valid Users For Shares

Sep 11, 2010

I have setup a Centos5.5 VMWare guest with Samba and Winbind for Active Directory integration, using GUI tools. Authentication works flawlessly, with automatic home directory creation. What I want to achieve now is using local UNIX groups to controll access to shared folders, to avoid bothering AD administrators with groups management. This is my smb.conf global section:

workgroup = COGITANS
password server = domainserver.hq.cogitans.it
realm = HQ.COGITANS.IT
security = ads

[code]....

'finance' is a local UNIX group where I added user 'COGITANSalberto' (I also tried with 'alberto') as a secondary group (primary group is 'domain users' and it cannot be changed). I am sure the user is added, because it is listed in 'getent group'. If I specify user COGITANSalberto in valid users it works, i.e. only that use can access the share, the others get a NT_STATUS_ACCESS_DENIED error. But if I use +finance, access is denied to everybody, and this is the log:

[2010/09/11 14:12:37, 10] smbd/share_access.c:user_ok_token(211)
User COGITANSalberto not in 'valid users'
[2010/09/11 14:12:37, 2] smbd/service.c:make_connection_snum(617)
user 'COGITANSalberto' (from session setup) not permitted to access this share (finance)

[code]....

It seems like winbind cannot recognize finance as a local group. For the same reason, I guess, 'force group = finance' does not work either (files are created with 'domain users' group ownership). My /etc/nsswitch.conf:

passwd: files winbind
shadow: files winbind
group: files winbind

Grants and ownership on the '/repositories/shared/finance' folder are

root:domain users with permissions 775

View 2 Replies View Related

Red Hat :: Ssh To Server Without Username And Password

Jan 21, 2011

ssh to server without username and password

View 1 Replies View Related

General :: Webmin Error: Unable To Open A Webpage Even Though Virtual Server In Apache Is Added

Aug 2, 2010

I tried creating a virtual server in apache and it got created successfully. (I also added a zone in dns for that domain successfully) However, when I try opening that domain in my browser, I see a popup window which asks me what to do with "default" which is a php file type.

I dont see the index.php which should actually open. What do I do to make the php files display correctly?

View 2 Replies View Related

Red Hat / Fedora :: Does Logbash Mean To Ssh To A Server But With A Different Username Or Something

Sep 13, 2010

My boss told me very fast and briefly to 'logbash' to a server!! I googled and also searched here and also typed 'man logbash' but couldn't find out. does logbash mean to ssh to a server but with a different username or something?

View 8 Replies View Related

Server :: Permission Denied After SU - Username

May 25, 2011

I am getting permission denied after su - <username>. I have checked the permission and did not get any error.

[root@NF-Provider-SOC /]# su - nfadmin
-bash-3.00$ cat /var/log/messages
cat: /var/log/messages: Permission denied
-bash-3.00$ pwd
/home/nfadmin
-bash-3.00$ which bash
/bin/bash
-bash-3.00$ crontab -l
cron/nfadmin: Permission denied
-bash-3.00$ id
uid=501(nfadmin) gid=503(nfadmin) groups=502(dba),503(nfadmin)
-bash-3.00$ tailf /var/log/messages
Cannot open "/var/log/messages" for read
Permission denied
and permission in home dir is 755.

View 1 Replies View Related

Server :: How To Allow Uppercase Username For Auto Login?

Jun 3, 2009

I have users created in Linux box with lowercase name, from one of my DB team from AS400 server they are trying to run a script from which they could only pass usernames only in "uppercase".
my question is how to allow the username if it comes in uppercase in linux (note: lowercase user shhudnt be changed to uppercase as well we shudnt add new user in uppercase)

View 3 Replies View Related

Server :: NFS Mounting With Username / Password Option?

Mar 23, 2011

I'd like to manually mount my nfs share mount -t nfs ipaddress:/nfsshare /mnt/nfsfolder but would like to include a userid and password option via command (not via fstab), since the nfs share has different credentials than the server where I'm mounting to. What's the proper switch to include in this line?

View 1 Replies View Related

Ubuntu Security :: SSH Server - Username / Password Encrypted

Jan 31, 2010

There was a recent thread in this forum regarding capturing of SSH passwords via the use of wireshark. The thread subject was closed, which is a decision that I both agree with as well as agree with the reasoning behind. The thread, however, raised a point of curiosity and concern that I would like to ask about. Quoting from a the book, SSH, The definitive guide,

The client authenticates you to the remote computer's SSH server using an encrypted connection, meaning that your username and password are encrypted before they leave the local machine. The SSH server then logs you in, and your entire login session is encrypted as it travels between client and server. Because the encryption is transparent, you won't notice any differences between telnet and the telnet-like SSH client.

I was under the impression that SSH was impervious to this type of eavesdropping, and quite frankly I take great comfort in that idea. I personally, only allow RSA keys for SSH access and (hopefully) avoid this problem (?) as a result. Does SSH really have a vulnerability in that the authentication is sent via plain text? How to ensure the security of SSH and not on anything that could be considered a how to 'crack' it.

View 6 Replies View Related

Ubuntu Installation :: Server 9.10 - Can't Log In To The Clean Install - What's Username

Dec 30, 2010

I have installed Ubuntu Server three times now. It "NEVER" asks for a "USERNAME". I can't log in to the clean install. Guess what? I never entered a username, so I don't know what it is. I have never logged in. Don't ask me to go to /etc/, I can't log in. It is NOT a video proplem, Ubunto Server is command line OS.

Login incorrect: [system-name] login: Login time out after 60 seconds.

I'm asked to enter a network system name during install. I'm asked for a password, then repeat it during install. but never asks for a "UserName" during install. So, what is it? root? ubuntu? default? Nope, I've tried many many many of them, even admin, nothing works.

View 4 Replies View Related

Ubuntu Servers :: Rsync To Username / Password FTP Server

Jul 26, 2011

Im reading a lot on how to rync to an ftp server but none of the steps are telling me how to do it on servers that use normal authentication.Example I want to keep /var/www in sync with a folder on an ftp server in a folder called /cdn/.Id like to see all files and folders in sync, not just a compressed file etc

View 2 Replies View Related

General :: Connect To The Server It Prompts For Username And Password?

May 3, 2010

i installed acronis on the server end , the problem is that i have disabled the graphical interface on the server i have a acronis management console on a windows system where the image is being created when i try to connect to the linux server it prompts for username and password after i give the credentials then i get this error

[Code]...

View 2 Replies View Related

Server :: HTTP Proxy With Username / Password Support?

Jan 13, 2011

I bought a firefox extension which support proxy with username and password, but seems only http version and not socks 5 server which I already have installed on server. I know for privoxy, but privoxy don't support username/password. Is there anything else what works with username/password? Also what is different between http and socks5?

View 3 Replies View Related

Server :: RHEL, And LDAP Authentication, Username Yes, Password No?

Jan 10, 2011

I started a new job and they use LDAP here. I built a new RHEL 5.5 server and configured LDAP. Usernames are recognized but the password is not. I can chown a file to a user name but when I try to login as the user it won't accept the password.I know the password is correct because I can login to any of the old boxes and it accepts the password. I ran authconfig-tui to tell my RHEL box to authenticate to ldap.

View 1 Replies View Related

Server :: Samba Share Prompt Username / Password

Sep 21, 2009

I have set up my samba server. I tested from my windows side, all the public ones works fine except the [homes]. Here is my [homes] setting:

Code:
[homes]
comment = Home Directories
browseable = yes
writable = yes

The homes is suppose to let each user see his/her own home directory. But I tested at the windows side, I found that windows doesn't even prompt me about username or password, it just directly give me "not accessible" error. How do I config so my windows side at least prompt me about username/password?

View 12 Replies View Related







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