Programming :: Restore Copy Folder&file Permission ?

Dec 16, 2010

I have files and folders various permissions.I copied the files and folders to X server.But I forgot to copy of the permissions.Like is hereHow can restore the permissions?

View 3 Replies


ADVERTISEMENT

Ubuntu :: Backup And Restore Installed Copy Of 10.10?

Mar 19, 2011

How to Backup & Restore Installed copy of my UBUNTU 10.10.If I create any ISO or Recovery CD /DVD, saves time to fresh install & update & install favorable software.I use Mobile to connect, works slow to download.

View 3 Replies View Related

Ubuntu :: Permission Denied When Copy To Usb?

Jan 3, 2011

Im running Ubuntu 10.10 on my hp mini 110 netbook, have been for since i upgraded from 10.04. The problem Im having all of a sudden is when I try and copy anything from internal file system, to anything external [phone, card reader, usb hardrive] I get a pop up that says Error opening file '/media/disk/<filename>': Permission denied

Should be a quick fix i would think, what you guys got ???

View 2 Replies View Related

Ubuntu :: Share File Permission \ Some One Copy Their File In This Folder The Permission Is Marked As "no Group" "no Owner"?

May 18, 2011

I'm using ubuntu 11.04, I'm having some problem of ownership while sharing folder/files. to share i change the folder share option:1. Share this folder, then followed by 2.allow others to create and delete files in this folder3. guest access.Now if someone in my local network edit any file and save it, it gets locked. if some one copy their file in this folder the permission is marked as "no group" "no owner". and they get unaccessible to me. i tried doing chown <user> <folder> but it says Operation not permitted. Now how i can possibly share my folder on local network so that they can be edited by others without getting locked down , if they copy files i can able to modify them.

View 2 Replies View Related

Red Hat :: Redhat User Permission ( Copy From One Server To Another )?

Apr 20, 2011

I'd like to clarify about the permission. 1 ) When I transfer the entire directory from one server to another using "rcp" , the permission still remain as source directory or inherit from the destination directory in different server? 2 ) I have one issue. When I transfer using one server to another server using "rcp" permission was changed at the destination from "770" to "750" at the destination director

View 1 Replies View Related

Ubuntu Servers :: Win7 Needs Permission To Copy To Smb Share?

Oct 5, 2010

I setup ubuntu 10.04.1 server on a computer I'm using as a server for my home. I can view the share folder on server from win7 I can read files but cannot right to the share. However from Xubuntu I was able to read and write no problem. So the question is... why can't windows 7 read and right like xubuntu? I have 2 win7 machines and both were denied writing to the share folder... I'm by no means an expert.. I setup the share using ubuntu server guide pdf... not sure if its done correctly maybe someone here knows off hand what kind of permissions would be causing this.

View 6 Replies View Related

General :: Cannot Copy File Even As Root (Permission Denied)

Jan 2, 2011

I am attempting to make a backup copy of a file, but every time I try to copy the file, I get a "permission denied error -- even when running as root. The file is on a volume mounted as /media/Data . No problems reading/writing other files on the volume.

Here is the info on the file:
-rw-------. 1 root MailServer.img

I've tried chown but get the permission denied as well. This is a virtual machine image that runs fine, but even with the VM completely shut down, I get the same error.

View 10 Replies View Related

Ubuntu :: Can't Delete, Copy Or Move Files - Permission Denied?

Jul 20, 2010

I can't perform any of those.Except from the Terminal.I didn't edit any permission... nor installed anything.Don't know what to do.Also, "Move to Trash" appears grayed out, in the right-click menu (for all the files/folders).

View 8 Replies View Related

Ubuntu Security :: Permission Denied When Copy Home Directory?

May 22, 2011

Running Ubuntu 10.04 I logged into (sudo?) (root?) using:

Code:
sudo -s
and then entering my password.

I navigated into the home folder and viewed the long listing of it's contents using:

Code:
root@host:~# cd /home; ls -l
total 4
drwxr-xr-x 65 uname uname 4096 2011-05-22 17:14 uname

[Code]...

View 5 Replies View Related

General :: CP Read Permission Denied - Cannot Copy Files From Pen Drive

Sep 23, 2009

I can't copy a few files from my pen drive. Got the files from a public computer, with windows. I use fedora 10.

cp gives the following error--->
cp const1.java /home/user1/Documents/scjp
cp: cannot open `const1.java' for reading: Permission denied
lsattr shows this--->
lsattr const1.java
lsattr: Permission denied While reading flags on const1.java
mount shows this--->
/dev/sdc1 on /media/disk type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)

View 3 Replies View Related

Security :: Module - Copy ELF Or BIN Files From The Filesystem - Get Permission Denied

Mar 17, 2010

Whenever i copy ELF or BIN files from the filesystem of linux i must get permission denied. For this case i have gone through the linux security module but didn't get much help regarding the permission denied only in case of copy of ELF and BIN files from filesystem. how can i proceed in this. WORK DONE:

1. Downloaded linux-2.6.25.14

WORK NEEDS TO BE DONE:

1. compile the kernel with some modifications in linux security module to get the desired results but this time i am unaware of that.

View 5 Replies View Related

Debian Configuration :: Permission Denied To Copy Files Onto Android Phone?

Jul 9, 2011

Here is a copy of my fstab # /etc/fstab: static file system information.

#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices

[code]...

View 6 Replies View Related

General :: Copy File From The Underlying NTFS Windows HD - Error - Permission Denied

Jan 17, 2010

Quite a few times i have boot puppy linux live and have tried to copy file from the underlying NTFS windows HD only to get an error like permission denied when i try and copy a file to say a USB stick, i think some files copy but i seem to get permission errors with some files.

View 1 Replies View Related

General :: Wrong File Permission / When Copy File

Oct 18, 2010

I have a C-function that create a file and then make a copy in the same directory, but somethin is wrong with permission or owners.The program starts as root user.The file creates by the program:

-rwxrwxrwx 1 root staff 199680 Oct 18 10:58 test

Ok, but after copying the permission is not the same.The file after copying (with new name) by the program:
-rw-r--r-- 1 root root 199680 Oct 18 10:58 test_copy

I want to have full permission of the copy, how to do??

View 2 Replies View Related

Programming :: Restore The Proper Ownership?

Jul 22, 2010

Using chown as root, from the userb directory and as follows /home/userb chown -R userb:users /home/userb/* has changed the ownership of direcories, subdirectories and files of all other users. There are too many of those but only 4 users to restore the proper ownership and I do not know bash, can someone give me a bash script to do the job, avoiding the -R switch?

View 14 Replies View Related

Programming :: Shell Script For Backup And Restore?

Aug 25, 2010

I have requirement on shell scriptingre scripts for the following:
1) Full backup(application and DB): tar all the files and database and copy them in the backup server
2) Incremental back up of files: backup of all the updated filester the last backup.
3) Restoring of backup files: restore the backup files from the backup server to the application server.

View 3 Replies View Related

Programming :: Copy An Entire Line And Add That Copy At The End Of The Same Line?

Feb 6, 2011

how do you copy an entire line and add that copy at the end of the same line?

For example, sometimes I rename a collection of files with a command like:

"mv oldfilename newfilename;"

I am able to add "mv" at the beginning, the semicolon at the end and sometimes replace a word in the middle, but... how to change a line "oldfilename" into "oldfilename oldfilename"... that is already long time a mystery to me...

View 5 Replies View Related

Programming :: Root Permission For Bash Script?

Aug 31, 2010

I am trying to write a script that will create a directory, copy files to it, zip them, move the zip file to the desktop and clean up.However, when I run the script, it comes back stating that I do not have permission to make the directory. I wanted to know how to add the permission into the script to allow for access to whoever runs the script to pull the logs, but won't leave the system in the root user?here is what I have for code so far:

#!/bin/bash
host= 'hostname'
mkdir /home/savelogs

[code]....

View 1 Replies View Related

Programming :: Give Www-data Permission To Sudo?

Aug 29, 2010

How can I give www-data permission to use sudo? I used to assign permission to users to use sudo using KDE but don't know how to do it on a headless server.Basicly I have a web application running that wants to call a command that needs root privs. When it calls this command it's running as www-data. I guess it's not working as www-data is not allowed to use sudo. If it can use sudo I could for example...Code:echo "password" | sudo -S "some admin command here"I could be wrong but i'm petty sure I just need to give www-data permission to use sudo?

View 5 Replies View Related

Programming :: CSH Permission Denied When Accessing Local File

Mar 9, 2011

I've just recently started learning shell scripting and I've been working on a basic csh script, but I've been having a few problems. Here's the script

Code:
#!/bin/csh
echo Enter a file name
$< = FILE ##Name of file
echo enter a size (in kilobytes) to monitor
SIZETOMON = $< ##Size value that's input by user
du -k $FILE = $SIZE ##Size of the file that the user wishes to monitor
while (1)
if $SIZE > $SIZETOMON then
echo ALERT: File size is greater than $SIZETOMON
end

And here's the output
Code:
/home/lucer/foo.txt: Permission denied.
Badly placed ()'s.

I'm not really sure what the issue is with the "badly placed ()'s" or why it won't let me access files that I can access with the same shell when it's not in a script.

View 14 Replies View Related

Programming :: Getting Error In Ftp From Windows To Unix Box - Permission Denied

Mar 18, 2009

I have a written a java code to ftp a file from the windows box to unix box. It keeps giving me the following error : "java.io.FileNotFoundException: PORT 204,63,56,5,16,78: 550 Permission denied." I am able to ftp manually from windows to unix.

View 5 Replies View Related

Programming :: Remove Line Containing Certain Variable - Bash - Permission Denied?

Jul 20, 2011

I am writing a bash script to run everyday and output results to a file. When the same results are produced i want to overwrite the line from the previous day. (Or remove and add). So if the script finds a variable in a line. i want it to output the results to that line . sed -i did not work for me; sed: couldn't open temporary file ./sedTvOCEg: Permission denied

View 10 Replies View Related

Programming :: User Mode Permission Denied To Bind To Socket?

May 3, 2011

In user mode [non-root] linux machine, tried to bind a socket by using a"ioctl(iInterfaceSocket, SIOCSIFADDR, &stCommand)". I am getting error 13 -> Permission denied because of user mode. If change from usermode to kernel mode everything works fine.I need to bind the socket in user mode only, please suggest solution for the abovewhile explaining the above,

View 2 Replies View Related

Programming :: Sed Just Can't Get It To Copy Between Expressions

Apr 22, 2010

im trying to get sed to read through a txt document that contains html and cant get it to copy over my code looks like Code: sed -n '/[width=468 height=60 border=0 /></a></center><hr>]/,/[<br clear=left><hr>]/p' 1.txt > 2.txt This is the code that seemed to have the best chance of working but still all it does is copy the whole txt document over instead of between these 2 expressions

View 3 Replies View Related

Programming :: Copy Big Files Using Tar?

Sep 13, 2010

I am trying to copy content of single folder to multiple destination simultaneously using tar and FIFO. here is the source code

mkfifo bin1.fifo
tar -C bin -cf - . | tee bin1.fifo | tar -C bin2 -xf - &
tar -C bin1 -xf bin1.fifo

[code]....

View 1 Replies View Related

Programming :: Write A Script To Display Permission On Each Folders In $PATH Variable

Nov 26, 2010

Code:

# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

How would i write a script to display permission on each folders in $PATH variable below format.

drwxr-xr-x 2 0 root 4096 Nov 24 14:51 /usr/kerberos/sbin
drwxr-xr-x 2 0 root 4096 Nov 24 14:51 /usr/kerberos/bin

This is what i did but since it require awk programming i m stuck.

Code:

ls -ld <directoryinpath>

Code:

# echo $PATH | awk -F ":" '{ print $1 }'
/usr/kerberos/sbin

View 4 Replies View Related

Programming :: Create A Bash Menu Script For Home Server - Restore Files From A Backup?

Jan 19, 2011

I would like to create a bash menu script for my home server For instance if i were to type ./script It would then bring up 3 options

a. Create a backup
b. Restore files from a backup
c. Quit

If you were to select a or b it should then ask you were you want to backup or restore from. And if i were to type in an incorrect letter i should get an error and take me back to menu. I have attepmted this a view time now and have magaged to get the menu up using parameters

View 9 Replies View Related

Programming :: Optimizing Of Copy Constructor In C++

Aug 20, 2010

In one of my interview, interviewer asked the following question on deep copy constructor:

When we are externally overloading the copy constructor is there any optimization strategies when we are using several copy constructors.

View 2 Replies View Related

Programming :: Copy Text Between Workspaces?

Aug 27, 2010

I need to copy text from screen of one workspace to a file in another of a different user.My x-windows is a tad rusty but a quick review leads me to believe this can be done.

View 8 Replies View Related

Programming :: Why Does Installer Copy *.h Into /usr/include

Sep 15, 2010

I am working on a Linux embedded C++ project. When I do an install, all of the header files are copied into the target at /usr/include/.My question is, why would the target ever need the C++ header files? It seems to me all the target needs is the executables and the library *.so files.I want to remove the installation of header files into the target but I'm afraid I'm missing something.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved