Ubuntu Servers :: Upload Files Via FTP To A Specific Folder (/var/www/myfolder/)?
Dec 22, 2010
When I try to upload files via FTP to a specific folder (/var/www/myfolder/) I get the message 550 permission is denied. I set CHMOD 777 for this folder (I had to do this via SSH cause I was not allowed to do this in FileZilla)
View 5 Replies
ADVERTISEMENT
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
Jul 24, 2010
I need to search a bunch of files in a specific folder for a specific number and add all the numbers together to a total sum. I use Rsync everyday, everytime I run rsync i get a logfile (rsync output) witch contains the textstring "Total bytes sent: xxxxxx".
The "xxxxx" can vary in lenght. I need to extract the "xxxxxx" from each file and add the numbers together to a total size over a week or a month. Is this possible? And I wish to only use bash. One way of doing stuff at a time my friends .
View 5 Replies
View Related
Apr 30, 2009
I installed lxadmin and now when I try upload files to my lxadmin users public_html folder I get the following message. Cannot write to `backup.zip' (No space left on device). After checking with df -h i noticed / is full.
Quote:[root@box admin]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 1.5G 1.5G 0 100% /
/dev/sda8 65G 341M 61G 1% /var
/dev/sda7 745M 17M 690M 3% /var/tmp
/dev/sda6 996M 34M 911M 4% /tmp
/dev/sda5 2.4G 1.1G 1.2G 48% /usr
/dev/sda1 99M 27M 67M 29% /boot
tmpfs 1014M 0 1014M 0% /dev/shm
/dev/sdb1 367G 195M 348G 1% /var1
View 5 Replies
View Related
Jul 20, 2011
sudo cp ../../../rootfs_maker_ramdisk drivers/filesystem/ -rf
give below errorCode:cp: cannot create special file ...._rootfs/dev/hda4': No such device or addressi get this error only in some specific locationsif i dont use sudo then i get permission denied msg
View 4 Replies
View Related
Dec 24, 2010
I am trying to use the command gzip to compress a directory or file list as argument and compress the file in a file named copia101225, within a directory named ZIPFILES. I want to make sure that if the arguments doesn't exist, the destination directory doesn't exist that it creates it. I keep failing at compressing the file to copia101225, that is within the directory named ZIPFILES This is what I have so far:
#! / bin / bash
# Title: Compress a file
# Author: Jose Miguel Colella
# Description: Compress a file
[code]....
View 14 Replies
View Related
Mar 10, 2011
I am new to ubuntu and just installed the vsftpd service by this tutorial: [URL]. Now my question is how can I give users rights to one specific folder?
useradd username -d /home/folder/new
Thats the command id used but when I login to the ftp the user is able to see all other folders as well ..
View 5 Replies
View Related
Jun 24, 2011
What would be the best way to automatically copy all of the data off of a library of cds to a specific folder on the computer? I was thinking of running a bash script but I've run into a few snags figuring out the correct way to do it. Mainly due to the fact that the cd drive is mounted in a different folder in /media each time I insert a new diskAlso, the mounting and unmounting process causes it's own problems, but I think that could be covered by a for loop that checks /mtab every few seconds or so.
View 2 Replies
View Related
Oct 19, 2010
I want to delete all files within a specific folder without actually deleting the folder, what is a good bash command for this?. I found this one but encountered some errors even though I am executing it within the specific folder:
useratdebian:/home/user/folder# find . -type f -exec rm -rf {} ;
[1] 5052
useratdebian:/home/user/folder# find: missing argument to `-exec'
[1]+ Exit 1 find . -type f -exec rm -rf
The command as it appears is:
find . -type f -exec rm -rf {} ;
how to delete only the files contained within the folder called "folder" for example?
View 4 Replies
View Related
Aug 21, 2010
I am using secure delete to remove files from a Debian Linux PC. However, secure delete does not remove folders. This has lead me to look at writing a script that would move files to a predetermined folder for deletion. My plan is as follows:I have a folder on my desktop called shredder where I move the contents of the waste bin to. The script needs to identify all files within the folders and sub folders, within the shredder folder, and move each file to the shredder folder and then delete the folder. At this point secure delete can be used with a command like shred -v -u *.*on the shredder folder.The problem I have is in creating the code to move files from the different folders and then deleting the folders. Note that the names of the files, folders and subfolders will not always be known
View 12 Replies
View Related
Nov 16, 2010
I have a script that checks a folder for zip files than moves them to a different folder. I want to check every 5 maybe 10 seconds and since cron is setup to run at least a 1 minute increment I'm not sure how to do that time check as probably a loop within the script. One other thing is once the time check is in the script how would a cron job be setup to run this script? Once the script is running cron doesn't need to run it again, is there a feature to check if it's running and if it's not then run it?
find /export/xxxshare -name "*.zip" -exec mv {} /export/store ;
View 3 Replies
View Related
Nov 16, 2010
Terribly new to Linux and find it mindboggling. I work on brain imaging and unfortunately all of the analysis runs on Linux, and I do not understand computers well coming as I do from a medical background. So my question - There are various folders of patient MRI scans (folders called P1, P2, P3 etc) and within them are enclosed certain files that I am interested in (always called the same name in all folders, say image001). I would like a script that enables me to copy and move this image001 in all these individual folders to another folder altogether.
View 13 Replies
View Related
Feb 19, 2010
I have a vary unique problem with file and directory ownership. I need to change the ownership of multiple files and directories under a specific subdirectory.Under this directory structure there are files and directories owned my different users and groups. I need to change all files and directories owned by "user1" to "user2". but if any are owned by "user3" I need those left alone.Is there a simple way to do this or will I need to traverse the structure and change things one at a time.
View 3 Replies
View Related
Mar 26, 2011
I'm trying to rename files recursively from a folder. I want to delete the & from every filename. i've searched the net and found the following script:
Code:
#!/bin/bash
dir=/whatever/directory
for file in `ls $dir` ; do
# ANYCASE TO UPPERCASE:
newname=`echo $file | tr '[a-z]' '[A-Z]'`
mv $dir/$file $dir/$newname
done
and changed it:
Code:
#!/bin/bash
dir=/home/test
for file in `find $dir -type f` ; do
#rename files containing &
newname=`echo $file` | tr '[&]' ''
mv $dir/$file $dir/$newname
done
But the for loop explodes the filename after each & sign, so i don't have a whole filename. if the file is named lorem & ipsum, the for loop will break it in 3 parts.
View 2 Replies
View Related
Apr 17, 2010
Im trying to change permissions so i can upload to my proftp server. i can download ok but i want to access most folders via ftp so i can upload to them, at the moment i get permission denied message.
View 1 Replies
View Related
Mar 27, 2010
I have server running ubuntu. There is folder /var/netflow and I have there files, which creates every 5minutes new ones(monitoring traffic on network). And I need to delete files older than 6 months manually. Can you help?
View 2 Replies
View Related
May 20, 2010
I was curious if I could have the home folder system from a desktop install point to a set of home folders over on the server? It would streamline my backups and make files a bit more central for accessing
View 3 Replies
View Related
Apr 1, 2010
I work on two hosts, [1] with online ftp access, and [2] without ncftp installed, but with ssh access.
Now I need to recursively upload a folder from [2] to [1]. So I can't use hardfeed - which is for downloading
I think I can use a
find ./orig -exec curl ftp://pinshosting.net
But I'm not so so known with the params of find and curl to get it working recursively.
View 4 Replies
View Related
Feb 13, 2011
i attached file in email using terminal(mutt) but i want to upload folder on my server with terminal , script
View 13 Replies
View Related
Nov 18, 2010
I have many clients uploading to the same directory.
I have set chmod to 733 and chown to another user on the upload folder so that the different clients do not see each others files,
but that also causes the client to not see their own files after they are uploaded or not being able to resume broken uploads.
I would like the different user log in with their own username and password but all upload to the same directory and not see each others files, but just their own. Is this possible? Or does anyone have a tip how to achieve something similar?
View 1 Replies
View Related
Feb 18, 2010
I'm trying to setup a Samba share for our work. I have it almost complete, however I can't successfully share editable files between users. The issue I'm having is that say User1 create a file test.txt, because of the 755 permissions, then User2, who has "writable" rights as per the smb.conf file, cannot edit that test.txt file.
Whevener I create a file with a user, its locked by that user. Is there a way I can set it that every folder/file a user creates is 777 ? I firgured that there's still security because of the "Valid users = " field in the smb.conf file.
View 9 Replies
View Related
Apr 17, 2010
I have installed Fedora 12 x86_64 and vsftpd. I would like to set up an user for FTP so that he/she could only view/edit files in one certain folder (the one that I set up). How would I go about doing that?
View 2 Replies
View Related
Oct 20, 2010
does anybody knows how to setup the same upload/download folder for all users ? My vsftpd has been installed on CentOS. Its using system user.
What should I put in /etc/vsftpd/vsftpd.conf to configure folder
/fileserver
for all users ?
View 2 Replies
View Related
Feb 24, 2011
However, configured a website on a dedicated server using WHM/cPanel. The site was uploaded using the master account for the website.
The security issue is public users are able to upload files on to my server via the website. They could even access the root and execute whatever they want on the server.
I have consulted with 2-3 Linux experts. According to them, the PHP user has rights to execute anything on the server or upload & store files in whichever folder they want.
Can I protect my folders to avoid file uploads via the website. The application has security vulnerabilites. However, I want to prevent hackers to enter my site until the vulnerabilities are fixed.
View 2 Replies
View Related
Mar 21, 2010
i need to install this downloaded tar gz file into the /proc/driver directory.
View 6 Replies
View Related
Oct 30, 2010
I am running php on my ubuntu server, and I am trying to upload files to it.
Heres my code:
Code:
I use the move_uploaded_file(), but I can't get the location to work correctly. "/var/www/upload/" uploads to "/var/www/". This is the only way i can get this code to work. I would like to upload to "/var/www/upload/".
View 2 Replies
View Related
Jun 25, 2010
I'm on holidays, away from home and the machines I can use have all XP.
I can access my U1 account from there but it seems it is no possible to backup and upload anything to U1 from these XP's. It's rather anoying because I'll have to buy another SD card for my photo camera at this pace.
View 9 Replies
View Related
Jun 18, 2010
Basically, I want to install Opera 10.60 Beta, but I currently have 10.10 Final installed, and I don't want to upgrade/overwrite my current install. Is there any way to specify which directory the .deb package install itself into?
View 1 Replies
View Related
May 4, 2010
jpg files are not visible for upload. I only see the dir. trying to upload pictures to ebay. 9.10 and 10.4 are the same. I tried another sevice same thing happens. Can some one point me in the right direction.
View 2 Replies
View Related
Sep 9, 2010
Not sure this is appropriate here but wondering if one has advantage over other in terms of sharability?
Also is it possible to upload files through symlinks? ie put a simlink to a tar ball located elsewhere on filesystem than ubuntu one/dropbox folder.
View 6 Replies
View Related