Tag Archives: FTP

Solaris 10 – A User Can Download File but Cannot Upload

By byrusber

Dear all,

I have made a search on the forum, but couldn’t find a related topic about this issue.

* I have created a user on Solaris 10 OS with below command and then set password for the user.

Quote:

useradd -g 0 -u 1001 -d /opt/hattesti/ttupload -m hattesti


* Now i can FTP to OS with this user (hattesti). Although i can download files under related directory; i cannot upload files to it.

Could you please help me to solve this issue?

Quote:

root@Server1 # more /etc/passwd
root:x:0:0:Super-User:/:/bin/bash
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:
adm:x:4:4:Admin:/var/adm:
lp:x:71:8:Line Printer Admin:/usr/spool/lp:
uucp:x:5:5:uucp Admin:/usr/lib/uucp:
nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico
smmsp:x:25:25:SendMail Message Submission Program:/:
listen:x:37:4:Network Admin:/usr/net/nls:
gdm:x:50:50:GDM Reserved UID:/:
webservd:x:80:80:WebServer Reserved UID:/:
postgres:x:90:90:PostgreSQL Reserved UID:/:/usr/bin/pfksh
svctag:x:95:12:Service Tag UID:/:
unknown:x:96:96:Unknown Remote UID:/:
nobody:x:60001:60001:NFS Anonymous Access User:/:
noaccess:x:60002:60002:No Access User:/:
nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
mysql:x:100:800::/home/mysql:/bin/sh
hattesti:x:1001:0::/opt/hattesti/ttupload:/bin/sh
root@Server1 #


Quote:

root@Server1 # more /etc/group
root::0:
other::1:root
bin::2:root,daemon
sys::3:root,bin,adm
adm::4:root,daemon
uucp::5:root
mail::6:root
tty::7:root,adm
lp::8:root,adm
nuucp::9:root
staff::10:
daemon::12:root
sysadmin::14:
smmsp::25:
gdm::50:
webservd::80:
postgres::90:
unknown::96:
nobody::60001:
noaccess::60002:
nogroup::65534:
mysql::800:
root@Server1 #


…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Files copied to FTP server not shown

By RHCE

I had copied 2 files to an FTP server which I deployed on my RHEL 5.8 server. The ownership I kept for the files are for the user, ftp. But, I do not see the files on the FTP location using either accessing through Windows explorer or the browser. The ftp location is ftp://10.101.17.80/incoming. The files are visible on the server when I login using root in the location, /var/ftp/incoming.

I hope, my query is clear.

Please revert with the reply to my query.

Regards

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Error in UNIX script

By sourabh.chhabra

When i run a script in linux. It shows the following error.

‘icsftpagent.sh: line 114: syntax error near unexpected token `’icsftpagent.sh: line 114: `Nicsftp() The script is as follows.

#!/bin/bash
#### Copyright Notice:
####
#### Copyright (c) 2007 Network Intelligence Corporation
####
#### Warning: This computer program is protected by copyright law and
#### international treaties. Unauthorized reproduction or distribution
#### of this program, or any portion of it, may result in severe civil
#### and criminal penalties, and will be prosecuted to the maximum
#### extent possible under the law.
####
#### RSA, The Security Division of EMC – Automated FTP/SCP/SFTP Script v2.7.11
####
###################
####
#### Begin User configuration
####
##########
########
######
####
#SILENT MODE
#produce no output to the console;
#set this to true when running from cron
#to reduce emails sent to root.
SILENT=true
# Have the Solaris POSIX compliant binaries first in the path.
# The /usr/bin directory in Solaris doesn’t have POSIX compliant
# binaries. This is particularly a problem for the awk command we are
# using. (ECE-138)
#PATH=/usr/xpg6/bin:/usr/xpg4/bin:/usr/css/bin:$PATH
## Enter the hostname/IP address of the enVision machine to which you want to
## send the data files
ENVISION=192.168.1.20
## Enter the directories where the data files, which you need to send, exist. Separate
## multiple directories with a colon (:). This script must have read permissions
## to the directories.
## Example for multiple folders DATA_DIRECTORY=/var/log/:/var/log/audit
DATA_DIRECTORY=/var/log/
## The directory on the enVision box where the files should be written to. This directory
## is relative to the enVision/ftp_files directory. If the directory name contains a
## space it will need to be double escaped. For example, if the directory name is
## “name with spaces”, the variable needs to be set to “name with spaces”.
ENVISION_DIRECTORY=Squid_192.168.1.63
## The script keeps its persistent information in a directory. The
## script must have read and write permissions to this directory.
NIC_DIRECTORY=/usr/local/nic
## TRANSFER_METHOD=SFTP/SCP/FTP
## Select the method used to transfer the files to enVision. SFTP is recommended.
## valid options are FTP, SFTP and SCP
TRANSFER_METHOD=SFTP
## Enter a username (ftp default: anonymous; SFTP/SCP default: nic_sshd)
USERNAME=nic_sshd
## Enter a password (anonymous connections accept any password)
PASSWORD=RSAlab@12345
## Enter the identity/private key file for the user specified above user
## default is $HOME/.ssh/id_rsa
IDENTITY=~/.ssh/id_rsa
## Enter the file matching specification. “*” will send any files in the directory. Separate
## multiple fielnames with a colon (:).
## Example for multiple files::
## …read more
Source: FULL ARTICLE at The UNIX and Linux Forums

UNIX Error in Script

By sourabh.chhabra

When i run a script in linux. It shows the following error.
‘icsftpagent.sh: line 114: syntax error near unexpected token `
‘icsftpagent.sh: line 114: `Nicsftp()

My Script is as follows:
#!/bin/bash
#### Copyright Notice:
####
#### Copyright (c) 2007 Network Intelligence Corporation
####
#### Warning: This computer program is protected by copyright law and
#### international treaties. Unauthorized reproduction or distribution
#### of this program, or any portion of it, may result in severe civil
#### and criminal penalties, and will be prosecuted to the maximum
#### extent possible under the law.
####
#### RSA, The Security Division of EMC – Automated FTP/SCP/SFTP Script v2.7.11
####
###################
####
#### Begin User configuration
####
##########
########
######
####
#SILENT MODE
#produce no output to the console;
#set this to true when running from cron
#to reduce emails sent to root.
SILENT=true
# Have the Solaris POSIX compliant binaries first in the path.
# The /usr/bin directory in Solaris doesn’t have POSIX compliant
# binaries. This is particularly a problem for the awk command we are
# using. (ECE-138)
#PATH=/usr/xpg6/bin:/usr/xpg4/bin:/usr/css/bin:$PATH
## Enter the hostname/IP address of the enVision machine to which you want to
## send the data files
ENVISION=192.168.1.20
## Enter the directories where the data files, which you need to send, exist. Separate
## multiple directories with a colon (:). This script must have read permissions
## to the directories.
## Example for multiple folders DATA_DIRECTORY=/var/log/:/var/log/audit
DATA_DIRECTORY=/var/log/
## The directory on the enVision box where the files should be written to. This directory
## is relative to the enVision/ftp_files directory. If the directory name contains a
## space it will need to be double escaped. For example, if the directory name is
## “name with spaces”, the variable needs to be set to “name with spaces”.
ENVISION_DIRECTORY=Squid_192.168.1.63
## The script keeps its persistent information in a directory. The
## script must have read and write permissions to this directory.
NIC_DIRECTORY=/usr/local/nic
## TRANSFER_METHOD=SFTP/SCP/FTP
## Select the method used to transfer the files to enVision. SFTP is recommended.
## valid options are FTP, SFTP and SCP
TRANSFER_METHOD=SFTP
## Enter a username (ftp default: anonymous; SFTP/SCP default: nic_sshd)
USERNAME=nic_sshd
## Enter a password (anonymous connections accept any password)
PASSWORD=RSAlab@12345
## Enter the identity/private key file for the user specified above user
## default is $HOME/.ssh/id_rsa
IDENTITY=~/.ssh/id_rsa
## Enter the file matching specification. “*” will send any files in the directory. Separate
## multiple fielnames with a colon (:).
## Example for multiple files::
## FILESPEC=*.log:xyz.log …read more
Source: FULL ARTICLE at The UNIX and Linux Forums

SFTP user include/exclude without preventing SSH login

By rbatte1

I have been asked to see if we can restrict SFTP access to authorised users only. There will be business users who will log on with SSH, but they are locked into a menu. They will have write access to the production data to do their job, but we don’t want them to have access to read/write the files with SFTP or anything else for that matter.

For plain FTP, we would use the /etc/ftpusers file and re-create it each night with all users in /etc/passwd except those in the allowed list. Not clever, but it worked.

We’re running RHEL / Centos 6.3 and the server is running vsftp is installed for plain FTP along with openssh-server-5.3p1-81.el6_3.x86_64 The sshd_config file defines sftp as starting up /usr/libexec/openssh/sftp-server

Any suggestions? Badly, the users home directory is a common area with the application & data below it, so I can’t just enforce the chroot jail. User SSH login is by userid/password rather than certificate. Not sure if that helps or hinders.

Thanks, in advance,
Robin

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

How to ftp the files in perl.?

By aarts

i want to upload two different files in to two different directories(path) on ftp server.but i am able to ftping only one at a time :(.. not both simultaneously.
here i have connectd the ftp and use the binary mode to transfer the files

Code:


$ftp = Net::FTP->new($ftphost, Debug => 0)
or die "Cannot connect to $ftphost $@";

$ftp->login($ftpuser, $ftppassword)
or die "Cannot login ", $ftp->message;

$ftp->binary;
# Full Path on FTP

$ftp->cwd($fullpath);
print "Ftp Path : $fullpathnn";
$ftp->put("$filename");

$ftp->cwd($fullftp)or die "Cannot change working directory ", $ftp->message;
$ftp->put($filename2) or die $ftp->message;

}


would be highly thankful if anyone can help me out.

Regards,

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Review: SyncUp syncs data whether you're logged on or not

Sync programs are a dime a dozen. However, tightly written, easy-to-use, and nearly feature-complete sync programs such as @Max SyncUp are not. SyncUp walks that fine line between power and ease of use very well, and succeeds largely because it puts options within easy reach, yet keeps them simple and uses as little technical jargon as possible.

Clean, simple, straightforward. You can’t argue with the way options are presented in Max SyncUp or the array of them.

SyncUp ($25, 30-day free trial) has nearly every feature you could ask for: backup, file filters, scheduling, and both two-way and one-way synchronization, as well as support for domain users, email notifications, FTP servers, networks, and very granular scheduling. However, a possible weak point is the lack of online destinations. Google Drive is supported, but nothing else. If you want to back up more than the 5GB that Google Drive allows, to say Amazon S3, you’ll need to look elsewhere.

While SyncUp doesn’t support revisioning as such, it will keep multiple older versions of your files. It also syncs using plain file copying, to zip archives, or to its own proprietary encrypted archives. The program spawns its own service as well that allows it to perform scheduled operations whether you’re logged in or not. Nice.

@Max SyncUp supports Google’s online storage and FTP servers, but not Amazon S3.

@Max SyncUp is well-executed. If you use S3 or any other non-Google online backup or storage service, it may not be for you, but otherwise it should be on your shortlist of pay sync programs if freebies such as FreeFileSync won’t do.

To read this article in full or to leave a comment, please click here

…read more
Source: FULL ARTICLE at PCWorld

AIX VIOS IVM Ethernet problem

By KevB

File Type: txt
Hi All,

I have a p520 box running 3 LPARs, 1 x VIOS, 1 x AIX 6.1 and 1 x AIX 7.1 and no HMC, all configuration is performed via VIOS/IVM

Until recently the box did not have the AIX7.1 LPAR and everything was fine with the box.

We needed to use AIX 7.1 for a new project, so I created a new LPAR and configured it to share the non-VIOS resouces equally with the AIX6.1 LPAR. Everything seemed to go well and I was able to install AIX 7.1 successfully and start using that via PuTTy and FTP as required.

However, it seems that everytime we need to cold-boot the machine, the AIX7.1 LPAR looses visibility of the network. The VIOS and AIX6.1 LPARs remain fine with full network connectivity.

In my investigations so far I have found the following from the VIOS LPAR:

Code:


$ lsdev
name status description
L2cache0 Available L2 Cache
VMLibrary Defined Logical volume
VMrootvg Defined Volume group
cd0 Available SATA DVD-RAM Drive
en0 Defined Standard Ethernet Network Interface
en1 Stopped Standard Ethernet Network Interface
en2 Defined Standard Ethernet Network Interface
en3 Defined Standard Ethernet Network Interface
en4 Defined Standard Ethernet Network Interface
en5 Defined Standard Ethernet Network Interface
en6 Available Standard Ethernet Network Interface
en7 Defined Standard Ethernet Network Interface
ent0 Available Logical Host Ethernet Port (lp-hea)
ent1 Available Logical Host Ethernet Port (lp-hea)
ent2 Available Virtual I/O Ethernet Adapter (l-lan)
ent3 ...read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Need to split a string

By adshocker

Hi,

We have a SunOS 5.10 Generic_142900-13 sun4v sparc SUNW,T5240.

I’m trying to find a way to split a string into 2 variables.

Ex:
parm1=”192.168.1.101/parent/child”

What I need to do is split the string above into:

host=”192.168.1.101″
location=”parent/child”

I saw the solution provided here http://www.unix.com/shell-programmin…tion-file.html but somehow we don’t have the -o option for grep as I keep getting illegal option –o.

The purpose of this is for a shell script already created to do an FTP function. Originally it was intended for accepting HOST, USER, PASS and FILE parameters only. Basically file goes to whatever the main directory on FTP connect. Now users are passing HOST/folder as value for HOST parameter which gives out an error now since 192.168.1.101/parent/child is not a valid HOST. And it would be a lot of work to add another parameter for LOCATION because a lot of other programs are already using this script so I’m trying to avoid this solution for now.

I’d appreciate any suggestions.

Thanks.

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Python script not working in batch process

By mhahe

Good morning, I have a python 2.3 script that runs stand alone as intended when tested, then it was put into a ksh script. when running the ksh script it runs as intended. The problem is that my script does not run when the ksh script is called by another user who runs a batch process (as of right now I do not know the specifics of this batch process) which calls the ksh script, which should call my python script. I have tried changing owner ship of my python script to the user that will be running the batch script and also gave 777 permissions to the script in hopes that would help. I am new to unix and python altogether so any input would be much appreciated. In case the internals of my script are relevant, my script does:
1. checks a directory for files
2. goes through these files and checks for a certain pattern and counts hits
3. create a file that saves the name of the file that contains matches to this pattern and how many hits were found
4. FTP the created file and all files containing hits to another machine.

my script uses an external command ‘openssl’ for decrypting the other machines login info.

Thanks in advance.

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Want to download a latest file with current date from FTP location

By Praveen Pandit

Dear Friends,

I need help to write a shell / perl script to download the files from FTP location, having different file names (date inside the file name).

Example:

Mar 5 09:24 cfx_03052013_return_file.txt
Mar 6 02:13 cfx_03062013_return_file.txt
Mar 7 06:40 cfx_03072013_return_file.txt
Mar 8 08:07 cfx_03082013_return_file.txt
Mar 9 06:18 cfx_03092013_return_file.txt
Mar 10 05:23 cfx_03102013_return_file.txt
Mar 15 05:40 cfx_03152013_return_file.txt
Mar 13 05:40 cfx_03132013_return_file.txt

Since Linux commands doesn’t work within the FTP, I need a script to download only the latest file (not all files).

Please help !!

Thanks in advance.

Regards
Praveen

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

FTP command issue in shell script

By Renjith180282

Hi All

I am using following code in my shell script to send the file to a mainframe server.

Code:

ftp -in $FTP_IP_SEND <$LOG_DIR/ProviderExportFTP.log
quote user $FTP_USER_SEND
quote pass $FTP_PASS_SEND
ascii
send ./ProviderExport.txt 'PROJ.PDRCACTS.FD87050.EXPORT' (REPLACE
bye


From one of my server, this code is not correctly. I am able to ftp files, But receiver is getting only a part of it. My actual file size is 1 mb and recevier is getting only 40 Kb.

Intersting thing is that the same code is working from another server. Both of my machine is having HP Unix insatalled in it. The recever is Maniframe system.

I am new to Unix and finding it hard locate the issue. Any help regarding this issue is greatly appriciated.

Thanks in advance
Renjith

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Massive Success of Free-to-Play Model Boosts OBJE's Gaming App Projections

By Business Wirevia The Motley Fool

Filed under:

Massive Success of Free-to-Play Model Boosts OBJE’s Gaming App Projections

SARASOTA, Fla.–(BUSINESS WIRE)– The latest market data on free-to-play (FTP) gaming apps has significantly raised OBJ Enterprises’ (OTCBB: OBJE) internal expectations for Phantasmic, the first FTP game in offing from OBJE’s partners at Novalon Games.

The FTP statistics from the TomiAhonen Almanac 2013 are staggeringly positive. Revenue earned from mobile apps are forecast to approach $10 billion, with games accounting for about 80 percent of that total. The world’s estimated 1.2 billion mobile gamers have made free-to-play games their preferred business model, and the top FTP games pull in average revenue per daily user of 25 cents.

In fact, the strength of the FTP model has industry analysts such as SuperData Research predicting that the global market for FTP games will jump to nearly $21.5 billion by 2015.

“There are now roughly as many mobile gamers in the world as there are computer users,” said OBJE CEO Paul Watson. “FTP games are becoming the preferred choice for casual and hardcore gamers alike, and we’re ready to help feed that demand. Phantasmic is only the start.”

Novalon Games, the game developer founded by a joint venture between OBJE and Source Street, also released an early test version of the new puzzle-based mobile gaming app Stupid Pixels last week. The alpha version of Stupid Pixels and the beta version Phantasmic can be viewed and played online at www.novalongames.com. OBJE and Novalon look forward to your continued feedback as we prepare for our official releases.

Obscene Interactive is a division of OBJ Enterprises, Inc. that is working to develop innovative gaming products for the Apple (NAS: AAPL) App Store and Google (NAS: GOOG) Play platforms alongside companies such as Glu Mobile Inc. (NAS: GLUU) and The9 Limited (NAS: NCTY) .

Follow OBJ Enterprise on Twitter at www.twitter.com/OBJEnterprises.

About Obscene Interactive

Obscene Interactive, a subsidiary of OBJ Enterprises, Inc. (OBJE), is an emerging global developer of social gaming applications. OBJE’s cutting-edge technology platform enables its titles to be accessible to a broad audience of consumers all over the world, supporting multiple platforms for universal appeal. Obscene Interactive is focused on delivering the best in social gaming solutions to the mass …read more
Source: FULL ARTICLE at DailyFinance

FTP set codepage of source dataset

By tsdjim

I have a file on Suse Linux which is created in codepage 420. I need to FTP this file to a remote server with codepage 1256.

How do I specify in FTP that the source codepage is 420 instead of the Linux default? Is this possible with curl or any other ftp client on Linux. I don’t see a paramater in FTP to specify a source codepage.

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

FTP drag & drop

By RHCE

I have enabled FTP for my RHEL 5.8 server. I want to drag a file from my windows session and drop it to the FTP browser session but I am not able to do it as the file is not dragging.

I hope my query is clear that the drag & drop from the windows session to the FTP browser session running on Red Hat Linux is not working.

Please revert with the reply to my query.

Regards

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Uncharted 3 Multiplayer Goes Free to Play

Want to shoot Nathan Drake in the face without spending a dime? Well, your day has come. Today – when the PlayStation Store updates – Uncharted 3’s multiplayer will be free to download and play.

As you might expect, there are some restrictions. The competitive multiplayer is free up to Level 15; co-op modes aren’t included in the FTP client. However, Naughty Dog wants to give you options. If you want to raise the Level Cap to 25, it’ll cost you $4.99. If you want to remove the Level Cap restrictions, it’ll cost $19.99. If you want Co-op Arena, it’s $9.99. If you want Co-op Adventure, it’s $11.99.

Is this an attempt to save a fledgling multiplayer component?

“The answer really is no,” said Uncharted 3 Game Director Justin Richmond. “We really just wanted to add to that community as easily as we could.”

Continue reading…

…read more
Source: FULL ARTICLE at IGN Video Games

How to install PGX32 on Sparc 10 Ultra?

By Michele31416

I’m trying to install a PGX32 video card on my Sparc 10 Ultra running Solaris 10.

I’ve got the Oracle installation guide for it and I got as far as:

“4. Insert the CD-ROM labeled “GFX OpenWindows for Solaris 2” into the drive.”

I don’t have a CD-ROM by that name and a web search for that turned up nothing. :confused:

Further down in the guide, they offer the helpful advice: “To complete an installation from FTP files, you must first obtain the packages from Sun. Contact SunService for the correct packages and the site where the packages are located.” So that’s not going to work either.

I did an fbconfig -list but all that returned was /dev/fbs/m640 which I assume is the onboard PGX graphics. The monitor connected to the PGX32 is displaying nothing.

Can someone help me get this thing going? Pretty please? Thanks!

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Review: Handy Backup is plain, powerful, and easy to use

Handy Backup is utilitarian in the best sense; it’s a backup program with a no-nonsense interface and a boatload of features. Despite its plain countenance, one of its iterations is sure to appeal to IT types and smart consumers. I looked at Handy Backup Free, which is… free.

1. There’s not a lot to look at, but there’s power behind the Handy Backup grille.

Handy Backup Free is easy to use and lets you selects files as well as repositories for backing up. Repositories are folders or accounts such as My Documents, an FTP, WebDav, Amazon S3, etc. It’s a little odd to see the latter items listed under a backup list, but it’s also nice. You can back up to and restore data from local drives, CD/DVD/BD, FTP, and across a network.

You create a backup, restore, or synch task in Handy Backup Home using step-by-step wizards. These are easy to use, and once a task has been defined you can edit all the options directly from a multiple-paned dialog. To skip the wizard, you can simply duplicate a task and edit the pertinent options. Said options include full, incremental, differential backups; compressing the backup to encrypted zip files; scheduling; and running tasks before or after a job.

Handy Backup also comes in a $39 Home, $99 Professional, $199 Small Server, and $599 Server editions. Home is the latest 7.x version, while Pro adds disk imaging, backing up to SFTP servers, and ODBC database backup. The Small Server edition backs up numerous business and enterprise-level databases such as Microsoft Exchange data, Oracle, and more. The full Server version has all that plus the ability to back up multiple PCs to a central location.

To read this article in full or to leave a comment, please click here

…read more
Source: FULL ARTICLE at PCWorld