Sponsored Content
Operating Systems Solaris Solaris 10 - A User Can Download File but Cannot Upload Post 302785335 by byrusber on Monday 25th of March 2013 11:22:13 AM
Old 03-25-2013
Solaris 10 - A User Can Download File but Cannot Upload

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::/:
.......
hattesti:x:1001:0::/opt/hattesti/ttupload:/bin/sh
root@Server1 #
Quote:
root@Server1 # more /etc/group
root::0:
other::1:root
....
root@Server1 #
Image

---------- Post updated at 05:22 PM ---------- Previous update was at 05:09 PM ----------

Oh, i have solved my problem by changing related directory's rights.

Before it was like below:
Quote:
root@Server1 # ls -l
drwxr-xr-x 2 root root 512 Mar 25 16:36 ttupload
root@Server1 #
I used below command:
Quote:
root@Server1 # chown -R hattesti:root /opt/hattesti/ttupload
After this:
Quote:
root@Server1 # ls -l
drwxr-xr-x 2 hattesti root 512 Mar 25 16:36 ttupload
root@Server1 #
Now "hattesti" user can make upload.

Last edited by byrusber; 03-25-2013 at 12:28 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Solaris 8 download

Hey doe's anyone know of a direct link to download Solaris 8 for an Intel system? I've been looking all over the Sun site and others and i cant find were to download it, if i click on something like Solaris 8 binaries in the downloads page it just tells me about Solaris. Please help. Thanx (4 Replies)
Discussion started by: Gavan
4 Replies

2. UNIX for Dummies Questions & Answers

How can I download in Solaris?

I'm just trying to get SSH setup on Solaris and I want to download it. For some reason, if I ever goto a site and try to download something, it doesn't work. When I click on the download link it just goes to a blank page and sits there. Can anyone help a Solaris newb out? Thanks. (1 Reply)
Discussion started by: AMDPwred
1 Replies

3. Linux

restrict file download not upload

hi everybody, How cud i stop downloading files from FTP and allow uploading files in FTP. Thanks & reg, (2 Replies)
Discussion started by: utpalsarkar
2 Replies

4. UNIX for Dummies Questions & Answers

How to Upload a file by log in to anonymous user

Hi everybody,I am facing some problem with ftp server configuration.When I log in by anonymous user, it get logged in but when i want to upload a file in pub directory its showing some error like --- could not create a file ---,Can anybody pls tell me what changes I need to do in vsftpd.conf... (1 Reply)
Discussion started by: kunalpatil09
1 Replies

5. Shell Programming and Scripting

Getting upload and download speeds with the help of script?How?

How can I get the upload and download speed of my pc, provided that my interface is wlan0? I have though something like: #!/bin/sh ups=something downs=somethingelse echo " Your current up speed is $ups Your current down speed is $downs, but I have no idea how to get them?Are... (5 Replies)
Discussion started by: hakermania
5 Replies

6. Shell Programming and Scripting

Trying to combine upload and download totals from txt file by ip address

I have two files, uploads.txt and downloads.txt. I would like to combine the columns of these files based on the ip address. How can I best do this? Uploads.txt 192.168.0.147 1565369 192.168.0.13 1664855 192.168.0.6 1332868 Downloads.txt 192.168.0.147 9838820 192.168.0.18 12051718... (7 Replies)
Discussion started by: zanyspydude
7 Replies

7. Shell Programming and Scripting

Shell Script for Upload/download files using cURL

hi please help me out here, i want to use curl command in shell script to test web pages, what i have is an opening page, when i click on a button on opening page, the next page comes up and then i have to upload a file n then click another button to submit and then comes the output page,... (2 Replies)
Discussion started by: Olivia
2 Replies

8. Solaris

Looking for X.25 Download (Solaris 8)

Hello Forum Folks, I'm hoping to find a trustworthy download of a (Solstice?) X.25 package suitable for Solaris 8. I've been searching the Internet for many weeks (I am subscribed to "UNIX Packages", previously 'sunfreeware' and could not find anything). Would anyone know or have this... (3 Replies)
Discussion started by: ssid61
3 Replies

9. UNIX for Dummies Questions & Answers

Retrieve/download SSH key instead of Send/Upload?

Hi, is it possible to download/retrieve a public SSH key when you are logged in to the remote machine rather than sending the key, for example with ssh-copy-id from your local machine to the remote machine? I can only ssh into one direction (from the remote machine into the local machine),... (5 Replies)
Discussion started by: gczychi
5 Replies

10. Shell Programming and Scripting

Curl , download file with user:pass in bash script

Hello, My question is about curl command. (ubuntu14.04) In terminal, I am able to download my mainfile with: curl -u user1:pass1 http://11.22.33.44/******* When I convert it into bash script like this: #!/bin/bash cd /root/scripts computer_ip=11.22.33.44 curl -u $1:$2... (8 Replies)
Discussion started by: baris35
8 Replies
SHELL-QUOTE(1p) 					User Contributed Perl Documentation					   SHELL-QUOTE(1p)

NAME
shell-quote - quote arguments for safe use, unmodified in a shell command SYNOPSIS
shell-quote [switch]... arg... DESCRIPTION
shell-quote lets you pass arbitrary strings through the shell so that they won't be changed by the shell. This lets you process commands or files with embedded white space or shell globbing characters safely. Here are a few examples. EXAMPLES
ssh preserving args When running a remote command with ssh, ssh doesn't preserve the separate arguments it receives. It just joins them with spaces and passes them to "$SHELL -c". This doesn't work as intended: ssh host touch 'hi there' # fails It creates 2 files, hi and there. Instead, do this: cmd=`shell-quote touch 'hi there'` ssh host "$cmd" This gives you just 1 file, hi there. process find output It's not ordinarily possible to process an arbitrary list of files output by find with a shell script. Anything you put in $IFS to split up the output could legitimately be in a file's name. Here's how you can do it using shell-quote: eval set -- `find -type f -print0 | xargs -0 shell-quote --` debug shell scripts shell-quote is better than echo for debugging shell scripts. debug() { [ -z "$debug" ] || shell-quote "debug:" "$@" } With echo you can't tell the difference between "debug 'foo bar'" and "debug foo bar", but with shell-quote you can. save a command for later shell-quote can be used to build up a shell command to run later. Say you want the user to be able to give you switches for a command you're going to run. If you don't want the switches to be re-evaluated by the shell (which is usually a good idea, else there are things the user can't pass through), you can do something like this: user_switches= while [ $# != 0 ] do case x$1 in x--pass-through) [ $# -gt 1 ] || die "need an argument for $1" user_switches="$user_switches "`shell-quote -- "$2"` shift;; # process other switches esac shift done # later eval "shell-quote some-command $user_switches my args" OPTIONS
--debug Turn debugging on. --help Show the usage message and die. --version Show the version number and exit. AVAILABILITY
The code is licensed under the GNU GPL. Check http://www.argon.org/~roderick/ or CPAN for updated versions. AUTHOR
Roderick Schertler <roderick@argon.org> perl v5.8.4 2005-05-03 SHELL-QUOTE(1p)
All times are GMT -4. The time now is 02:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy