General :: Upload File To The Subfolder?
Mar 21, 2011
why I cannot upload local files to subfolder in my home folder on FTP server? Say, i wanna upload files to /home/haolh/trial/occ/src/occ, but following error msg were given...
commandput "C:Proj rialoccsrcocc" "occ"
error/home/haolh/trial/occ/src/occ: open for write: permission denied
After google this prob, i've tried commands as below but it still failed
chmod 770 /home/haolh/
chown root:haolh /home/haolh/
View 2 Replies
ADVERTISEMENT
Jul 26, 2010
I am testing my ftp server configuration.Anonymous download works , however anonymous upload does not.I am getting the following error message from both Windows and Linux 5.4clients : 553 cannot create the file.And i am running Fedore 12.
View 3 Replies
View Related
Dec 31, 2009
I have three users in samba file user1
user2
user3
and I have share1 and its subfolder " subshare " the thing i have to do is that, i have 2 assign user1 and user2 to share1 that means user1 and user2 can only access share1 through password and user3 can access only its subfolder "subshare" i have done this upto first level permission of share1 not able to do for its subfolder "subshare"
View 7 Replies
View Related
Aug 15, 2011
I need to upload a single file to FTP server from Ubuntu. This operation should be done in a script (in non-interactive mode). What is the right syntax for ftp?
I'm trying this, to no avail:
$ ftp -u ftp://user:secret@ftp.example.com my-local-file.txt
ftp: Invalid URL `ftp://'
View 2 Replies
View Related
Nov 16, 2010
How do I upload a .txt file into the base directory of domains that I own?
View 1 Replies
View Related
Jul 29, 2011
I create a bash script and I assign a folder variable like:
#!/bin/bash
....
Myvariable_FOLDER_PATH=/PATH/TO/SPECIFIC/SUBFOLDER
is there any way to make another variable with just the specific SUBFOLDER
(?some command?)----> will make My_variable_subfolder = SUBFOLDER
so if I do
echo $Myvariable_FOLDER_PATH
i get: /PATH/TO/SPECIFIC/SUBFOLDER
and echo $My_variable_subfolder
i get: /SUBFOLDER
The tree and path names will change so I jjust want the last subfolder that I will access to access its files.
View 3 Replies
View Related
Sep 29, 2010
I want my bash script to run scripts located on a different folder. If it is also located on the same folder with my script, it will go like this:
on my $HOME folder: (this_script.sh, backup.sh, restore.sh, purge.sh)
#!/bin/bash
./backup.sh
./restore.sh
./purge.sh
But what if, on my $HOME folder: (this_script.sh)
$HOME/scripts folder: ( backup.sh,restore.sh, purge.sh )
Below doesn't work...
#!/bin/bash
./$HOME/scripts/backup.sh
View 5 Replies
View Related
Jul 13, 2010
I was wondering, i have a webfolder and have permissions set to 770 with group being www-data. I would like to give access to one folder to a friend so he can edit images, css, etc. I made that folder 770 with group being site_name with www-data and him being in the group. So far so good it sounds like. However when i use the full path to the directory linux says it doesnt exist.
Is there a way i can make it so he doesnt have r/w file on files inside the parent directories and still access the directory i want to give him?
View 1 Replies
View Related
Jul 29, 2011
I want to delete a subfolder ABC in a main Project folder Globe. It occurs in many subfolders. It is very hectic to search and issue an rm -rf ABC command. I need to make a script for that .
View 4 Replies
View Related
Jul 13, 2011
I have many folders with many subfolders. All I want it to get the folder name and the first subfolder. I tried using ls -R but this give me more than I want it. Let say I have:
dir1/subdir1/sub_1_1/file.a
dir1/subdir1/sub_1_1/file.a2
dir1/subdir1/sub_1_1/file.a3
[code]....
All I want when I execute the command is to show me:
dir1/subdir1
dir1/subdir1
dir1/subdir2
[code]....
View 4 Replies
View Related
Dec 9, 2010
I am attempting to use the zip command with the '-x' option to exclude a folder e.g. 'zip upload.zip public_html -x public_html/jquery/*'. However, parts of this folder are still being added to the archive. I made a shell script (saved as 'compress.sh' and ran as '. compress.sh') to do the archiving so I could test adding nested wildards for multiple subfolder levels.
Code:
#!/bin/bash
rm -f upload.zip
zip -r upload.zip public_html
-x public_html/jquery
[code]....
Each new line I added here that has the nested wildcards made the archive file size a bit smaller. Adding more /*'s than this didn't affect the file size. Even after all this though, there were still a couple megabytes of files and folders from the 'jquery' directory that were added to the archive.
Here's some examples of files and folders that were created after I unzipped the archive:
public_html/jquery/js/tablesorter/addons/pager/icons [folder]
public_html/jquery/js/tablesorter/addons/pager/.svn/entries [file]
public_html/jquery/js/tablesorter/build/.svn/text-base/js.jar.svn-base [file]
Why is it that despite all the -x lines, the files and folders like these were still being added to the archive? How can I simply recursively exclude the entire public_html/jquery folder from the archive?
View 4 Replies
View Related
Nov 10, 2010
This script simply deletes files older than a certain age (in this case 7 days) from a certain location; I use it to purge old backups nightly, and it works as expected:
# delete backups older than 7 days
find /mnt/backup/* -mtime +7 -exec rm -Rf {} ;
The problem is, every morning I get an email with an error message something like this:
find: `/mnt/backup/subfolder': No such file or directory
View 2 Replies
View Related
Apr 25, 2011
I have a script (bash) that do some editing and stats on different logs (syslog) and output a file (html format). If i want to run the script on a file in a subfolder as the script where in that folder how do i do that?
Code:
makes a file called index.html with some stats from the syslog file.
if i run the script on a file in a subfolder
Code:
the script makes a output in the base folder, i want it to print the file to the test folder. There are multiple subolder and i want a index.html in each of them.
View 3 Replies
View Related
Mar 23, 2010
I just installed Fedora12 in a Core i3 machine... everything looks fine, but I have a huge problem... every time I upload a file (using ftp or sftp) some wier characters are included inside the file... for example.
[Code]......
View 6 Replies
View Related
Dec 16, 2015
I am trying to upload some pics on my Facebook account using Firefox. When I click on Facebook's file upload icon, Firefox bring up a 'File Upload' window. I noticed that smaller image file is previewed on the lower right hand corner, while bigger image file is not. Is there anyway I can change this behavior or maybe change what Firefox is using to browse my files?
View 2 Replies
View Related
Jul 14, 2011
I'm trying to create a script that will look for a "filename" under /etc/, date stamp the file and copy it to /var/www/upload
View 5 Replies
View Related
Jul 12, 2011
i am trying to upload a file with cgi. I have an html code like below :
<table class=upload>
<form method='POST' enctype='multipart/form-data' action='upload.cgi'>
<input name=upfile type=file ><br>
<br> <input type=submit value=Press> to upload the file!</form>
</table><br>
I am trying to get the file with upload.cgi and execute a linux command in linux but i do not know how to. I use C code for that. Can you help me,please? How can i know the file from html in cgi C code?
View 2 Replies
View Related
Jun 13, 2010
have setup a LAMP server with ubuntu 10.04 server edition x86 for my study in VMware Workstation 7.1 For a assignment I had to make a php script that would load a file up to the server and set the name in a mysql database. According to the book the server should set the image in a cryptic folder in the /tmp/ folder.
This isn't working and i also try'd locate and find to find the image i uploaded. I checked the php.ini and file uploads were on but no folder so i set that one to /tmp/ but still no images. Can anyone help me with enabling this function?
View 3 Replies
View Related
Jun 23, 2010
i used fedora 13 and I have facing problem in file uploading using move_uploaded_file() in PHP5.3..2 (latest). Error is.
Warning: move_uploaded_file(Security-HOWTO.pdf): failed to open stream: Permission denied in /var/www/html/test/test.php on line 7 Warning: move_uploaded_file(): Unable to move '/tmp/phpnQjOBe' to 'Security-HOWTO.pdf' in /var/www/html/test/test.php on line 7
i give 777 permission to test folder and html folder also. pdf file is 427.8 KB in php.ini file_uploads is on (local and master both value) safe_mode is off (local and master both value). i used copy command to also but same error occur.
View 4 Replies
View Related
Mar 8, 2011
i have apache server running on my laptop. i am trying to upload files on it. i tied from terminal first connecting to server by ftp and then put but i am getting an error
Code:
vivek@NEO:~$ ftp localhost
Connected to localhost.localdomain.
[code]....
View 4 Replies
View Related
Jul 21, 2011
How can I upload and delete a file? :
View 3 Replies
View Related
Jun 9, 2009
I have just started using linux. I have setup an ubuntu apache2 server. It has been running brilliantly and I am highly impressed with the Linux system. My box is an HTTP server and I am hosting a website on it. I have VSFTPD installed and functioning as my FTP software. It has worked fine so far but I have been a bit annoyed that I have had to set permissions for each file I have put on there.
Now I have run into a serious issue with the permissions being set to 600 and I really need them to 755 because I am running an automatic upload for a webcam and the Image can't be accessed due to the automatic permissions of 600 being set to the image. My extensive windows background tells me that I need to apply the correct permissions to the WWW folder and get the files to inherit these permissions automatically.
View 1 Replies
View Related
Apr 12, 2011
About php upload. I want a php upload script that renames and overwrite every uploaded file as onscreen.jpg I googled it but only found random number rename. Not working for me I want file name change and overwriting file on server.
View 8 Replies
View Related
Apr 21, 2011
The software Nagios uses .cgi files to show a lot of things.. services, hosts, etc etc. Is there any way to pick up those .cgi files and import them to other web page? how to do it?
View 2 Replies
View Related
Feb 6, 2011
I have been trying to get my message modem to read .g3 files under ubuntu (now 10.04) for over a year now, and have tried absolutely every application I can find to no avail.The output is always garbage.Every application tried gives the same result, but the fax is perfect on Windows, but I don't have a Windows machine any more.
I am unable to upload the .g3 file as it is an "invalid attachment" but have saved it to url.I have (hopefully) attached the resultant output from gimp, which is exactly the same with tkusr and efax. The fax is the weekly Debt collection agency touting for business (no, I don't owe them any money - yet)
I believe they all use a common file, something like g3topbm or g3topdf.If I try g2topbm on the command line: every second line has an error e.g: g3topbm: bad code word at row 202, col 5 (len 14 code 0x32), skipping to EOL
The .g3 files are created by a USR message modem which stores the files for later download ('cos the computer gets switched off at night.)
View 2 Replies
View Related
Aug 13, 2011
I was trying to upload a screenshot.png file in a thread 'what your non-debian desktop looks like' on the 'off topic' section. However my filewas of length 509KB but only files of length lower than 256KB could be uploaded. What is the way to scale down the length of the file?
View 9 Replies
View Related
May 11, 2010
I have a large file (deflated size: 602191947)that is not saved in my Ubuntu One account. On sync'ing the file is being uploaded, and eventually reaches 602191947 - and then nothing more happens to this file - but sync'ing the following files in the queue goes on with success. I have tried manual upload with the same result. The file is still being marked as 'uploading' even after several tries and log ins/log outs, and reboots. So I was just wondering whether there is a file size limit - can't seem to find information regarding this.
View 5 Replies
View Related
May 30, 2011
i'm using a special software at work using winxp mysql, phpmyadmin, apache. I want to migrate to linux ubuntu, i need to upload my sql DB file into phpmyadmin using commands, how do i do that?
View 5 Replies
View Related
Jun 29, 2011
this is the tftp configure in my linux server,
service tftp
{
socket_type = dgram
[code]....
View 11 Replies
View Related
Sep 29, 2009
After few hours working I can connect to ftp.And download files from the server.But I can not upload file or create directory.I checked my configure file several time could not figure it out.
# cat /etc/vsftpd/vsftpd.conf
anon_world_readable_only=NO
anonymous_enable=NO
[code]....
View 1 Replies
View Related