Copy of file without permission


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Copy of file without permission
# 1  
Old 08-06-2014
Network Copy of file without permission

Dear All,
I need some help on weired thing happed today.

We have one process which unzip and copy the file on one location

The zip file will be
Code:
abc123_xyz456_pl_20140805.zip

The content inside the zip file would be

Code:
abc123_xyz456_pl_20140805.csv

The file will be copied to location
Code:
/file_loc/abc123/xyz456

The owner of the process, and directory xyz456 is same user1.
security Group is usrsgpr1.

The process was running good but today i see the transfer of
Code:
abc123_xyz456_pl_20140805.csv

to location

Code:
/file_loc/abc123/xyz456

but the file was not having any permission. Smilie

as below
Code:
---------- 1 user1 usrsgpr1 38475 aug 6 11:27 abc123_xyz456_pl_20140805.csv

Could you please help to understand what could be the reason? What could be wrong?
Other files are transferred with correct persmission but for one of the file this happened.

About process:
The process copy the zip file deposited by user on remote server (one of the shared unix drive), check the zip, copy the zip on tmp location if zip having no issue, then unzip the file anc copy the content on correct location.
# 2  
Old 08-06-2014
It's not imposssible that the strange permissions came from the zip file itself. It does contain information on permissions, though often far from a complete UNIX user/group/world specification. unzip would appear to have no way to turn that off, though it does have a way to control whether sticky bits are included.

Is this process a script? Can you show us the listing from it?

Last edited by Corona688; 08-06-2014 at 02:51 PM..
# 3  
Old 08-06-2014
You can list the file permissions inside the zip file with
Code:
zipinfo abc123_xyz456_pl_20140805.zip

For safety, you can give yourself read permission after extraction
Code:
chmod u+r *.csv

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. HP-UX

File permission

Hi, Could you please tell me the OS command to grant as similar to below permission? rwxrwxr-x OS -- HP-UX Regards, Maddy (8 Replies)
Discussion started by: Maddy123
8 Replies

2. Shell Programming and Scripting

MV file with other permission

Hello All I have a file with rw-rw-r permission I need to mv the file into different directory (dir has rwx-rwx-rwx permission) with an others permission The application which is moving the file falls in other group I am getting the error mv cannot renamed permission denied ... (12 Replies)
Discussion started by: Pratik4891
12 Replies

3. UNIX for Dummies Questions & Answers

File permission

Only kernel can write to a directory file. Then what does write permission for a directory imply? (2 Replies)
Discussion started by: vijaysy
2 Replies

4. Shell Programming and Scripting

how to copy the directory but not copy certain file

Hi experts cp bin root src /mnt but not copy bin/bigfile any help? ( I post this thread in the "redhat" forum wrongly, I don't know how to withdraw that question in that wrong forum) Thanks (6 Replies)
Discussion started by: yanglei_fage
6 Replies

5. UNIX for Dummies Questions & Answers

Unable to copy file using SCP (Input/output & Permission denied error)

Hi, I am facing issue while using scp. Source & target machines are Linux & HP-UX respectively. On target machine, if I fire the following command, I get error: Now if I try scp on another file, which is on the same source machine, it works fine. All directories and subdirectories... (2 Replies)
Discussion started by: Technext
2 Replies

6. Shell Programming and Scripting

shell script to check permission before copy over

Hi, I am writing some shell script to check the file owner permission whether the write bit is turn on. If it is turn on it will copy the file to the destination else it will just prompt user to change the file and skipping it. However, I am starting getting loss here as I have couple of... (2 Replies)
Discussion started by: wanaka
2 Replies

7. Shell Programming and Scripting

file permission

Hi All, https://www.unix.com/unix-advanced-expert-users/105758-chmod-parent-sub-directories.html I have to change permission for the directories and subdirectories in single command when googled i found some updates but i understand what is switch. If there is a command please... (2 Replies)
Discussion started by: thelakbe
2 Replies

8. Solaris

file permission

hi frnds can u explain /etc/shadow file have read and write permissions for root only but while normal user changes his passwd it also updated in that file whats the logic behind that. (2 Replies)
Discussion started by: sravan ega
2 Replies

9. Cybersecurity

file permission/acl: 2 users with write access on 1 file...

Hello, i need some help/advice on how to solve a particular problem. these are the users: |name | group | ---------- --------------- |boss | department1 | |assistant | department1 | |employee | department1 | |spy | department2 | this is the... (0 Replies)
Discussion started by: elzalem
0 Replies
Login or Register to Ask a Question