Fedora Servers :: How To Preverse Ownership Of File Copy From NFS Mount
Sep 17, 2010
I export a folder via NFS service.I able to mount this NFS share in another Linux machine.The folder has many files.The ownership of these files aren't belong to single user. There are more than 10 different users' files in the folder.I am trying to migrate all these files to another folder. When I use "cp -a", the new files' ownership are all reset to the logon user.
Both NFS server and client machine has exactly same copy of users/groups as these 2 machines refer to same LDAP directory service. When use "ls -al" to list the NFS share in client, I can see the files ownership is exactly the same as the NFS server.Is that possible to preserve the ownership of files while doing such migration? The "cp -a" fail to deliver the job.
View 3 Replies
ADVERTISEMENT
May 25, 2011
process of migrating my server to Ubuntu Server 11.04 after my Server 2003 installation suffered a HDD failure. All my data is on an NTFS drive (not ideal but not much I can do about that). I can currently only read the disk as a user. root has ownership of everything on the disk. Whenever I try and change ownership of a file it doesn't bring up any errors but when running ls -l it shows that nothing has actually changed.
View 2 Replies
View Related
Aug 18, 2011
I mounted a shared windows folder from my LAN, and I changed the mount point's ownership on Linux using command line `chown me:me windir`. but when I enter the mount point, and to create files, it mentioned me 'Permission denied', but the file is actually created on the windows' folder, and its ownership is root:root.
this problem puzzled my programs going to run on it. cause them will detect a system returned error, and terminate in a abnormal way.
View 3 Replies
View Related
Nov 28, 2009
I can not use nfs from F10 client to F12 server. nfs mount on F10 to F12 times out anf nfs4 mount gives "mount.nfs4: mounting localhost:/home failed, reason given by server: No such file or directory" I have tried to close firewall and set selinux to permissive mode on both client and server with same result. Samba works fine. On server [root@flokipal ~]# mount -t nfs4 localhost:/home /media/tonlist mount.nfs4: mounting localhost:/home failed, reason given by server: No such file or directory
but
[root@flokipal ~]# mount -t nfs localhost:/home /media/tonlist
[root@flokipal ~]#
works
View 3 Replies
View Related
Nov 18, 2010
We are experiencing problems copying files from a server to server where the machine issuing the copy is a 32-bit lucid and the mount drive is a 64-bit server. I have no other information but the md5's are consistently different after doing a copy. The files are > 8mb.
View 2 Replies
View Related
Oct 22, 2010
I have two PCs with Ubuntu 10.4 and DOS 5.0, which are connected by a 9 pins serial cable. I need to copy some files from the Linux box to the DOS box.
I tried UUCP but it's too difficult and i didn't found a working client for DOS.
View 3 Replies
View Related
Mar 27, 2011
i've installed glassfish v3 on my ubuntu system. This will let us deploy java and groovy servlets to the glassfish environment on the server.From an iMac OS 10.5, i would like to programatically copy servlets from the mac to the ubuntu system. Can only think of using ftp client as i can drive the ftp client from bash scripts and java code.
View 1 Replies
View Related
Jun 10, 2010
Being fairly new to navigating around Linux in a server environment, I simply want to copy a file from the server to a file in my home directory on my laptop. I connected successfully using vpnc and then used ssh to connect to the server. Now, all I want to do is copy a file that I see on the server's home directory to my home directory on my laptop.However, I don't want to use these commands unless I am comfortable with them because the file that I am copying is a big file and I don't want to lose it.
View 3 Replies
View Related
Feb 26, 2011
I have a System with 3 raids and 11 hard drives
#1 Raid5: 6 * 1TB WD Green Power
#2 Raid1: 2 * 500GB WD Greem Power
#3 Raid1: 2 * 2TB Hitachi 24/7
[Code]....
i can't do the write test because it says: "the disk seems to ahve usage 'filesystem' ..." So I try copy via file browser.. From #1 to #3 i have an average write rate of 17 MB/s (one big file) When I do the same over GBit network, i get about 21 MB/s
I've got an X2 4200+ which is about 50% in use (both cores) in the worst case.
View 3 Replies
View Related
Mar 1, 2011
Today I was moving 25,000 files from my projects folder from a windows box to the linux box when I noticed it crapped out about 60% of the way done check the server console saw a crash report all over the screen so I hot the power button and rebooted server is back up no file loss so no problem but I thought I would report a problem with SAMBA and copying vast numbers of files is at issue after the restarting the server, samba still did not come up so I restated it and it is back up fine.
View 1 Replies
View Related
Jul 22, 2010
I've just installed Ubuntu server 10.04 and have set up vsftpd somewhat successfully. I can connect as my root user, and I only have access to my home directory. However, whenever I try to copy a file across a file I receive a 550 Permission denied error.
I've run the command ls -l /home/directory and the result returned is total 0, when I was expecting details of permissions per user. I've tried running chmod -w /home/directory but this doesn't return any result nor change the result of the above ls command.
View 5 Replies
View Related
Apr 8, 2010
I have a Samba share set up on a SUSE server and users connect to the share via Windows XP workstations. On SUSE, if I create a file and grant ownership to "administrator" and give it 770 permissions for example, when someone goes in to modify that file, they become the owner as soon as they save it, and the permissions change to 470 (r--rwx---+) with an access control list. I want to maintain ownership of the file myself and I don't understand why someone changing the file is changing the permissions on it...This is driving me insane because every time someone saves something I have to go in and chmod 770 it before they can save it again.
View 2 Replies
View Related
May 12, 2010
I want to copy file from the Server cd drive and USB drive to the server root directory, but I haven't find any command of listing the cd drive or usb drive.
View 4 Replies
View Related
Jul 7, 2010
I need to install a script into my Gimp folder which is owned by root. I tried "chown my name usr/ share/ gimp2.0/scripts" in terminal, but it tells me folder does not exist. I know I'm missing something, but I haven't done this in a while, so I'm not sure what it is.
View 2 Replies
View Related
Aug 4, 2010
I am running a shell script as the user "redhatuser01" and this script creates a files in the home directory of another user "redhatuser02" (/home/redhatuser02/sample.txt) but the ownership of this file is currently "redhatuser01". How can i change the "ownership of this file to the user "redhatuser02"? (My constraint is that I cannot sudo as redhatuser2 and create the file).
View 5 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
Jan 1, 2011
I installed Ubuntu from the alternate cd a few days ago to save space and resources on a very old laptop. (install command line, then add what I wanted) But I have struck an interesting problem with file permissions. Various programs like synaptic, leafpad, pcman, Banshee, all require I enter the root password to execute them (or sudo command from terminal). I want to change synaptic from root ownership to sudo and leafpad etc to execute without using the sudo command in terminal. I could get comments on the commands before I execute them in terminal and if I am introducing a security problem, as I am still learning bash. $ sudo chown sudo:sudo synaptic
I would still be asked for my sudo password before being able to open synaptic? As in standard Ubuntu instead of root password.$ sudo chmod 777 leafpad pcman Banshee All users could open these programs from the menu? I have my admin account and a general account which I use for everyday things like surfing the net and listening to music.
View 6 Replies
View Related
May 16, 2011
I have an Ubuntu machine running NFS4 server and a plugapps (arch linux) machine connecting as the client. The plugbox is running an rsync job to backup the home directory from Ubuntu to a local USB HDD.
All of the files in the destination have owner nobody and group nobody.
Ubuntu /etc/exports:
Code:
/home 192.168.2.1/24(rw,sync,no_subtree_check,no_root_squash)
plugbox /etc/fstab
[Code].....
how I can mantain the file owners. I have the UID's and passwords sync'd between the two machines for both root and the user who's home dir is being backed up.
View 9 Replies
View Related
Aug 1, 2011
I've created a share using Nautilus on an Ubuntu 11.04 machine and can access it OK from both my Win 7 pc and partner's WinXP machine. We both have Ubuntu accounts and use those to access the share. When an Excel spreadsheet is saved on the WinXP machine the ownership changes and it can then only be opened read-only on the Win7 machine. A further complication could be that the Win7 machine has OpenOffice and the WinXP has MS Office. I'm guessing that XP + Office doesn't really care about or see the permissions, but Win7 + OpenOffice does. Should I be using the share with the same username from both PCs? Is my whole approach misguided?
View 1 Replies
View Related
Jun 17, 2011
Why would I need to be root to change the ownership of a file? Example: I'm logged in as dwadmin and I've created a file:
-rw-rw---- 1 dwadmin dgw 0 Jun 17 07:46 testing.txt
I want to change the ownership to another user, but am getting the following error: chown 511 testing.txt chown: changing ownership of `testing.txt': Operation not permitted
View 5 Replies
View Related
Sep 15, 2010
Is it possible to let users create the directory or files but only user "yat" can delete them.suppose other users are geller ross joe from group FH , who have privileges. whenever these users create file or dir , they should not able delete it.BottomLine: Group users should create file but should not be able to delete them.By the way using sgid bit didnt help .
View 14 Replies
View Related
Oct 11, 2010
I created a folder structure as root and now need to transfer ownership to an ordinary user.
This question is linked to this one - [URL]
I have a folder /srv/app-share that needs to be visible/writeable to user1
I tried (as root):
root@server [/]# chown -R user1:user1 /srv/
But that did not work.
View 1 Replies
View Related
Aug 30, 2010
I have been VERY lucky and managed to restore from a formatted ext3 /home/ partition. I used testdisk to reset the original partition which had had nothing done to it since formatting(!). However some of the file permissions are a altered and I cannot change them. I have tried "su chmod" and even temporarily enabled the root account itself and tried to alter the ownership/permissions from root 'proper' without it helping.
Here is an example of the output of ls -l
drwxr-xr-x 2 martyn martyn 4096 (date) (time) sponsors
?-----S--T 63231 92820383 44090688 4286824785 (date) (time) order.xls
The first line looks like a normally formed output and indeed is readable. The second line looks corrupted and I don't have a clue how I can reclaim this - or even if it is possible. Should I count my blessings most of my files are intact and leave those be?
View 2 Replies
View Related
Jul 6, 2011
It seems I had some kind of intrusion and I found 6 files changed its ownership to user 1035 and group 1035, I don't know how but I need to change them back to its original owner (root) because one of them is the ls command and the other is the ifconfig how can I revert them to its original state? I cant do it with chown.
View 3 Replies
View Related
Oct 14, 2010
I`ve been given a project to design a program that will interface with a hardware device through the parallel port.And so far it`s not going go. I managed to write the programe an compiled it, but when runing it the compiler says: 'changing ownership of'and then the file name then it continues to say, 'operation not permitted'.
View 9 Replies
View Related
Mar 14, 2011
I want to backup my server that godaddy is hosting and install it on my linux system at home. In other words I want to have a clone of my server at home, like what timemachine does on mac (carries files and programs from one mac to another to make a clone).
How do I do that? I create an image file an iso file? or what? How?
I want to do this incase my server burns up over there. I don't want to reinstall all the programs and do the set ups manually again.
View 4 Replies
View Related
Apr 13, 2011
I am attempting to copy files from one server to an external USB drive on a second server. Both servers are running custom RedHat Linux, kernel 2.6. Both are setup as Check Point SecurePlatform (one is a log server and the other a management server). I am trying to archive files from one (HP DL380 G5) to the second (HP DL380 G6). I am not able to archive directly to the external usb drive when connected to the HP DL380 G5 (data gets corrupted and switches to read-only access). The external USB drive has no issues when connected to the HP DL380 G6 server, thus my reason for trying to copy the files across servers.
When I attempt to use scp to copy files between the server, I am prompted for the password. Once entered the debug shows the authentication is successful, but then no files are copied (see log below). I have tried searching for potential answers, but none have panned out. Unfortunately I can't yet post the actual scp debug log output as some of the text is viewed as a URL and not yet allowed for me. I have changed all the atsign symbols to '(a)' to avoid the URL inference.
Output log from scp attempt follows:
[Expert(a)server1]# scp -p -r -v /var/fromhere/* copyfile(a)server2:/media/disk/tohere/
Executing: program /usr/bin/ssh host server2, user copyfile, command scp -v -r -p -d -t /media/disk/tohere/
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090707f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug1: Connecting to server2 [192.168.10.3] port 22.
debug1: Connection established.
debug1: identity file /root/.ssh/identity type -1 .....
debug1: Exit status 1
lost connection
[Expert(a)server1]#
View 1 Replies
View Related
Oct 15, 2009
I just purchased some shares data which came on cd in a zip file.When I try to copy the file from the cd I get a file input/output error.This happens whether I use cp in a terminal or if I try to cut and paste on the desktop.If I try to read it with the archive manager I get a similar error where the archive error complains about missing zipfile directory.I tried opening a couple of pdf files on the same disk and got input error for one and file is damaged for the other.Could this brand new disk be that damaged that it is totally corrupt? I cant see any scratches or anything on it.Any help copying this file to hard disk and unzipping would be appreciated.
View 2 Replies
View Related
Mar 1, 2011
How to copy a Read-Only file in Linux and make the copy writable with a single cp command in Linux (Ubuntu 10.04)? The --no-preserve and --preserve seemed to be good candidates, except that they should "and" the mode flags, while what I am looking for is something that will "or" them (add +w mode).
More details: I have to import a repository from GIT to Perforce. I want that all Perforce depot files are Read-Only (that is how Perforce was designed), while all other files that were derived/copied from depot files are writable. Currently if a Makefile tries to copy a Read-Only file then the derived file will also be Read-only. This leads to build-errors when cp tries to overwrite Read-Only file second time. Of course the --force is a workaround here but then the derived file is also Read-Only. Also I do not want to mess with "chmod" after each "cp" command - I will do that only as the last resort.
View 1 Replies
View Related
Sep 8, 2011
i try to copy file to my pendrive it slow down the machine and when i try to open the other running application like browser it open slowly. My RAM is 2 gb. and Swap is 1.5 gb.
View 1 Replies
View Related