Files unreadable in unix, help needed.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Files unreadable in unix, help needed.
# 1  
Old 02-18-2010
Question Files unreadable in unix, help needed.

Hi,

I developed a java application in Windows and transferred it to a HP-UX environment(using WinSCP) for deployment.

I used "chmod 777 ..." for granting rights to the files.

After I did this, whenever I go into that directory(or it's immediate parent directory) and hit "ls"......it shows ". unreadable".

pwd returns: "ksh: pwd: permission denied"

What could be wrong with this directory?

The other sibling directories seems to be unaffected.

Please help.

Thanks,
Agniv.
# 2  
Old 02-18-2010
this is pwd permission problem

The reason for this problem is that you don't have the permission for /bin/pwd.First you should give permission as ,

chmod 777 /bin/pwd . ( In some machines it will be /usr/bin/pwd )

After doing this you just give the old permission .

chmod 555 /bin/pwd
# 3  
Old 02-18-2010
I tries it, but it didn't work.

Actually the parent directory under which I installed it already had pwd(and every other) rights.
# 4  
Old 02-18-2010
Quote:
Originally Posted by agnivaccent
I used "chmod 777 ..." for granting rights to the files.
Do they really, actually need 777 permissions? That is, every last user, daemon, and program on the entire system system has read, write, and execute access? If you're chmod-ing every single file, you're probably granting execute permissions to many files that aren't even executables!
# 5  
Old 02-18-2010
I guess that the directory permissions are something weird like 111 (d--x--x--x). This would allow you to "cd" to the directory but not actually read the directory with "pwd" or "ls".
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

AIX unreadable sector Logical or Physical

Hello Folks, I have got this message: When I contacted support, they said this is logical filesystem error and it has to do with the filesystem. How can I find out ? (1 Reply)
Discussion started by: filosophizer
1 Replies

2. UNIX and Linux Applications

Fillable PDF becomes unreadable after edited with Okular

Can anyone explain why a editable pdf becomes unreadable after edited with okular? (5 Replies)
Discussion started by: cokedude
5 Replies

3. Filesystems, Disks and Memory

Smartmontools and fixing Unreadable Disk Sectors

I found a document: Bad block HOWTO for smartmontools My hard drive is Maxtor: root]# fdisk -lu /dev/hda Disk /dev/hda: 81.9 GB, 81964302336 bytes 255 heads, 63 sectors/track, 9964 cylinders, total 160086528 sectors Units = sectors of 1 * 512 = 512 bytes Disk identifier: 0x3f4e3f4d ... (0 Replies)
Discussion started by: justinian
0 Replies

4. Shell Programming and Scripting

file does not exist or unreadable in an FTP script

I will appreciate any help with this... I have a file in this directory that looks like: this 07210900.SUP, I am getting the following error: Activities for Tue Jul 21 07:29:14 EDT 2009: File 07210900.SUP does not exist or unreadable End of activities The idea is to capture the file in... (1 Reply)
Discussion started by: rechever
1 Replies

5. Shell Programming and Scripting

Does not exist or unreadable error in windows ftp script

I have a file like this 07200900.SUP,in a windows directory I need to FTP this file to UNIX , the directory in unix is N:\orgs\Financial Aid\MIIS\0910\FTP I am getting this error miis_ftp.ELM_SUP.shl: =cd orgs/"Financial Aid"/"MIIS"/"0910"/"FTP" : not found IN THE LOG FILE Activities for Mon... (3 Replies)
Discussion started by: rechever
3 Replies

6. UNIX for Advanced & Expert Users

unreadable

Hi, can someone explain what does this mean and why does this happen? i had this problem last week, and Unix admin said that he has to rebuild the file system. Now i am getting this error again. aaaa% ls . unreadable :mad: (7 Replies)
Discussion started by: treneryy
7 Replies

7. Red Hat

pstree unreadable characters

hi all, i executed this command "pstree" on redhat ent 4 and i got this below with unreadable chars: init─┬─acpid â”─amqzxma0─┬─amqrrmfa │ â”─amqzdmaa │ â”─amqzfuma │ â”─5* │ â”─amqzmgr0─┬─amqpcsea │ │ ... (2 Replies)
Discussion started by: itik
2 Replies

8. UNIX for Dummies Questions & Answers

mailx saved messages are unreadable (base64)

I am trying to parse emails sent from a blackberry. I am using fetchmail to download email through IMAP from my exchange server and then forward to local Linux mail. (This part works fine.) When viewing and saving messages sent as plain text from Outlook, everything works fine. However, when... (1 Reply)
Discussion started by: Squeakygoose
1 Replies

9. Shell Programming and Scripting

Unreadable

Hi Guys, I have one query. Say I have one script named test.sh. My Question: There is any method by which I can make this script (test.sh) non-human readable( like Encrypt) format as well as it should be executable also(mean to say it (test.sh) should not change its behaviour). Thanks... (3 Replies)
Discussion started by: SanjayLinux
3 Replies

10. UNIX for Dummies Questions & Answers

Unreadable Unix File

Hi Everyone, I have a question for you all. I am working at a company and we are trying to recover .dat files which were created on an older linux box and we have a folder of .dat files that are unreadable. When you try to open them in a text editor you get jibberish all shapes and sizes and... (19 Replies)
Discussion started by: ryangfm
19 Replies
Login or Register to Ask a Question