Ubuntu Networking :: How To FTP Files Between Servers Retaining Permissions
Feb 21, 2010
I got two ubutnu servers running side by side, I need to transfer several dir's of files, incl sub dirs to the other server via ftp and retaining the file permissions and dir structure. Both servers have ftp access, I am assuming theres an ftp command I use on the destination server to connect to the source server and retrieve the files? All the files reside in the one dir and need to be copied to the same dir on the destination server.
I've got an older RHEL 5.5 server that we're using for our company email server. We're going to retire this server and I've created a new Debian Linux server as it's replacement. Now I'm trying to rsync all the users /home/ directories to the new server however when I tested this, I noticed a problem. In the old source server where I'm running the actual rsync command from, everyone's home directory is owned by their unique UID and a generic GID (100 = users). So when I execute this command on the old RHEL 5.5 server:
Why are all the users home directories being owned by root:root on the target server? It's not owned by root:root on RHEL 5.5 and the only thing I can think of is my rsync command is wrong. According to the man page, I can see that using the -a switch should preserve all file ownership and much more. It's not doing this on the target Debian server. If it tries to copy over /home/bob and it's owned by bob:users, if Debian didn't know or have a UID for Bob, wouldn't it just assign a UID from RHEL 5.5 to the Debian server? So like /hone/bob would be owned by 1009:users?
i have a large directory of .bsp files that i would like to convert .bz2 archives. I've been searching for some time and all i can find is the obvious compress multiple files into one large archive. If anyone knows how to convert each file individually, while retaining the original file name (testmap.bsp would be archived as testmap.bsp.bz2)
So i pulled some files off my buddy's computer via my wireless home network, i can access them but in the permission tab the owner is "nobody" so i can move the files. How can i change the permissions to enable me to move the files?
Currently have access to a VPS where we are running a small game server on ubuntu - the problem is that it is a multi-user environment, so when one person restarts the server process, all files it creates are owned by that users name and group. I have created a group called 'game' and added both users to it, but I need to know how to make all files in the game server's directory to be r/w/x for the group 'game'. Currently, I have a script that chowns and chmods all files recursively on startup, but I'd prefer not having to do this.
I wrote a script to wake up my windows machine and do an rsync backup of some of my files. I wanted to make this command a accessible through local bin so I made it executable. However the problem is that when I copies files is copies them with root permissions and i can edit or delete them. How can I set the files so they transfer with the proper permissions for my Ubuntu user?
Code: #!/bin/bash # Description: This script first wakes up the client machine and syncs the appropriate folders. # Finally the script shuts down the client if it was off to begin with. if [ "$(whoami)" != "root" ]; then echo "Permission Denied" exit 1 fi .....
I would like to change the permissions for a directory and all files inside the directory how do I do this? The website is located only on my local network so I am not worried about security. Also what would be the optimal permissions for running wordpress.
With F11 installed Apache is having permissions issues reading files out of the html directory. Only wants to work with permissions set to read for other. [Thu Jun 11 23:25:28 2009] [error] [client 127.0.0.1] (13)Permission denied: file permissions deny server access: /var/www/html/index.html Tracked down the permissions issue. Is there a good reason not to change the group to apache and remove world read?
i want to change permissions for /proc/sys/net/ipv4/ip_forward and permission denied.when i want to delete it , operation not permitted.i know it is dynamically created file . but i want to chenge its permittion to read-only or delete it
I've been using Ubuntu for about 2 years now, but still have trouble with some of the finer workings of linux. I have a laptop that I use for general computing, and a desktop hooked up to a TV as sort of a remote backup/htpc. A problem I run into is when I transfer files, they get transfered with the owner set as the original computer's account, and I can't do anything until I open a remote viewer and gksudo nautilus to change the permissions of the file. I looked at articles about permissions and uid's, gid's, and umask but can't figure out how to apply it to my situation.
I thought about doing something with groups but am not sure exactly what, and anyway, default group settings only give read access and what I'm really looking for is the ability to manipulate files and folders across the entire /home dir on my desktop from my laptop. Desktop is running 8.04 and laptop is running 9.10. BTW I am currently sharing through smbfs. I read that this has been replaced by cifs, but at the moment I would prefer not the mess with things if I don't need to.
the permissions for my home directory were accidentally changed from 'access files' to 'create and delete files', and I changed them back, but ever since then I am not able to change any preferences/settings at all. power management, themes, panels, emerald, anything. my user account is supposed to be the administrator, and all the user privliges are checked. how to get control of my computer back?
I have about 50% of my music collection in wma format from my old Windoze days. I don't want to spend the time ( it is about 1800 songs) to re rip the tunes but I want uniform format. I tried using Sound Converter 1.4.4 but I lost all the meta-data.
Every time Ubuntu (10.04) starts, it uses a screen resolution of 1024x768. I change this successfully through Preferences to 1280x1024, but it is never remembered at the next boot. How do I ensure that it is. (I've read that an etc/X11/xorg.conf file may be used for this, but I don't have one and am unsure what I need to put into one)
I presently have a Karmc LiveUSB with a casper-rw partition, but am thinking of changing the LiveUSB image to Maverick, while still using the existing casper-rw partition and its data (mostly settings for Ubuntu itself, haven't installed any programmes). Using usb-creator, by the way. Are the config files for Karmic and Maverick significantly different that this will cause any major problems? [Separately, I think this will have implications for my existing Karmic install, because I'm planning to clone my Karmic /home partition to a fresh Maverick install.
I have a directory on the remote machine running redhat ES 2.1, which i want to copy to a local machine running fedora fc 10. I am using scp and want to retain permissions, links, and also ownerships of the copied directory structure. I am using scp -pr but the ownerships are all chaning to the user running scp, in my case its root. I have checked the user/groups. They are same on both the sides (lotus,bin,root). And yes I cannot use rsync as the remote m/c does not have this.
Natty Narwhal with Catalyst Control Center for the ATI Radeon and FireGL graphics accelerators is installed.
Version-- 2:8.840-0ubuntu4 (fglrx-amdcccle)
Launching and configuring dual monitor support that connects and expands my Desktop/Workspace when my laptop is docked works fine. However, it does not want to retain the settings after a restart and I am forced to set it each time. Ideas?
I'm planning to install openSUSE on a rather old computer(1,5 GB RAM 2,2 GHz Intel Celeron) and I have only 3,6 GB disk space at my disposal. Using Xfce or LXDE desktop environment what is the minimum installation size I can get while retaining a usable system?
I did not find any easy way to update firefox by googling so I am asking here. But Is there an easy way to update firefox to firefox 3.6 retaining all plugins, bookmarks etc. I am using fedora 12.
I have ubuntu 8.04 installed on a full disk partition. I've just bought a linux magazine, which came with a CD containing Fedora 12. I want to dual boot or fully install while retaining my music, if at all possible.
I've tried running the Fedora disc and choosing to fill empty space with Fedora, but I get an error informing me that I don't have enough space. Presumably, this is because I have a full disk partition.
on certain folders on a samba-server I would like to allow everyone everything.(Note: This refers to the filesystem-permissions. External security is cared for by samba. No problem here)That means: every local user and every remote user should be able to fully create, delete and modify every file in certain folders and all subfolder of these folders. This should include file contents and timestamps and permissions. And it should include modifying files owned by someone else, again meaning create/delete/modify/timestamp etc.
sometimes when transferring large files using scp between my desktop running maverick and other servers running Ubuntu, Debian or CentOS, I get the following error message: 77% 258MB 11.3MB/s 00:06 ETAReceived disconnect from xxx.xxx.xxx.xxx: 2: Packet corruptI've found a seemingly related bug report on launchpad here: but the provided "ethtool" fix did not help. I'd be most grateful for any ideas on how to solve this issue. Some more info:Linux lotus 2.6.35-22-generic-pae #35-Ubuntu SMP Sat Oct 16 22:16:51 UTC 2010 i686 GNU/Linuxlspci | grep eth -i00:19.0 Ethernet controller: Intel Corporation 82567LM-3 Gigabit Network Connection (rev 02)
I have limited experience in terminal, but let me first explain what I am trying to do to see if there is some easier way to do it. Basically I want to change the skin in aMSN. I downloaded the new skin but am unable to unzip or move it without /root permissions. I don't know how to acquire this without being in terminal. So I figured there had to be some way to go into the terminal and use it to move the unzipped folder from the desktop to the aMSN skins folder.
I have a LAMP server running Ubuntu 8.04.03 Server edition running smoothly. Ive setup several websites on the server and all are ok, but I constantly have trouble with permissions. Everytime I setup a new domain to host, I setup a user specific to that domain. This allows SSH login specific to the domain. The problem I have is that every time I setup ownership in the virtual directories for the users they belong to, the settings don't seem to stay. Initially it seems to work ok, but when I install Joomla and setup the webspace, I always seem to have to login to the server itself to chmod the folders I need to have writable. I cant chmod properly from my FTP client which is weird. How to manage permissions?
Currently I am doing the following: Code: sudo mkdir -p {name of domain}/{public,private, etc...} sudo usermod -g www-data {my user name} sudo chown -R www-data:www-data /var/www/{directory for the domain} sudo chmod -R 775 {folder path I need to change}
This works for a while but as I add new things to Joomla and I want to modify the folders, I always have to go back and redo the chmod and the chown commands to get them where I want.
I have a recently setup my first linux server (hardy) and am having problems with the permissions for a log file being changed. I believe this is caused by syslogd, but am not sure how to correct it. Bacula will report it is unable to start a backup because it is unable to open the log file (/var/lib/bacula/log) "permission denied". After changing the owner from syslog to bacula, the backup will resume. However, the following day I encounter the same problem because the owner of the log has been changed back to syslog.I see where the permissions for logs are altered in sysklogd, but I am not certain how to make bacula exempt or if this is the right approach.
i'm having issues with a folder which I cannot write to or seem to do anything else with? i figured i'd delete it and start again but i can't even do that!!
Code: server@server:~$ sudo chown server /media/server/swap/downloads/incomplete/ chown: changing ownership of `/media/server/swap/downloads/incomplete/': Operation not permitted
Is it possible to have a text file somewhere that contains a list of all users that are allowed access to a given folder? This would be fantastic for file servers on a network.