Operating System - HP-UX
1833784 Members
4892 Online
110063 Solutions
New Discussion

Unexpected Tilde character on directoryname

 
SOLVED
Go to solution
Mohamad Djuarsa
New Member

Unexpected Tilde character on directoryname

Hi,

I encountered problem in my HP-UX 11.23 while today ,suddenly there was a new directory with tilde character and 1 number in the directory name.
I've tried to trace for some logs ,but there are no any user except me who has login to this machine today.

i.e
original directoryname: /directory/mydir
the new directoryname: /directory/mydir~1

although the original directory is still there.
could you anyone to help me to find out the reason why this new directory has created ?

thx,
-dju
3 REPLIES 3
VK2COT
Honored Contributor

Re: Unexpected Tilde character on directoryname

Hello Mohamad,

a) Do you, by any chance share this directory
with Windows users (Samba, for example)?
I have seen funny issues like yours when
Windows users have access to Unix directories.

Each file system decides how it wants to implement short file names in Windows.

For example, Windows 95 uses the "~n" method exclusively. Long file names will contain a tilde for the first 9999 files with the same name:

longfi~1 longfi~2...

After that it seems to start randomizing the
end bit.

Windows NT adds the hexadecimal hash overflow technique.

Some file systems (like Novell) just truncate
the name. "Long dirname for file.txt" on a
Novell server will come out to
"LONGDIRN.TXT".

b) Strange directory and file names can also
be created by incorrect CTRL-C or similar
sequence.

c) Who is the owner of the directory and
what are its permissions? Is the directory empty? What is the datestamp of
last modification?

d) Can you list directories for
unprintable characters:

ls -alb /directory/mydir
ls -alb /directory/mydir~1
ls -alb /directory

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Mohamad Djuarsa
New Member

Re: Unexpected Tilde character on directoryname

a) I will ask to IT application support in my office first, since Windows 2003 for client which point to this directory for upload data thru application..
c) no, there are some files from windows which uploaded to this directory thru application.
for the ACL please see the following list below :


ls -alb /directory/mydir
total 6
drwxrwxr-x 6 ora10gas dba 96 Jan 4 20:26 .
drwxrwxr-x 5 ora10gas dba 96 Jan 2 15:52 ..
drwx------ 5 ora10gas dba 96 Jan 4 15:16 01
drwx------ 2 ora10gas dba 1024 Jan 4 16:12 2101
drwx------ 2 ora10gas dba 1024 Jan 4 15:16 2158
drwx------ 2 ora10gas dba 1024 Jan 4 16:12 workarea


ls -alb /directory/mydir~1
total 6
drwxrwxr-x 6 ora10gas dba 96 Jan 4 20:26 .
drwxrwxr-x 5 ora10gas dba 96 Jan 2 15:52 ..
drwx------ 5 ora10gas dba 96 Jan 4 15:16 01
drwx------ 2 ora10gas dba 1024 Jan 4 16:12 2101
drwx------ 2 ora10gas dba 1024 Jan 4 15:16 2158
drwx------ 2 ora10gas dba 1024 Jan 4 16:12 workarea

ls -alb /directory/mydir~1/2101/
total 7
drwxrwxr-x 6 ora10gas dba 96 Jan 4 16:12 .
drwxrwxr-x 5 ora10gas dba 96 Jan 4 17:07 ..
-rw-rwx--- 1 ora10gas dba 9984 Jan 4 15:20 LTS_ORMS1_20071231_1_OVERRIDE FLAG WO DARI Y TO N & Y to Y_31122007.TXT
-rw-rwx--- 1 ora10gas dba 3596 Jan 4 15:21 LTS_OUAT11_20080805_3_reversal denda 1
-rw-rwx--- 1 ora10gas dba 3596 Jan 4 15:28 LTS_OUAT11_20080805_4_reversal denda 1.txt
-rw-rwx--- 1 ora10gas dba 3596 Jan 4 17:36 LTS_OUAT11_20080805_5_reversal denda 2.txt
-rw-rwx--- 1 ora10gas dba 3596 Jan 4 18:02 LTS_OUAT11_20080805_6_reversal denda 3.txt

ls -alb /directory
total 44
drwxrwxr-x 5 ora10gas dba 96 Jan 2 15:52 .
drwxrwxr-x 3 ora10gas dba 96 Oct 6 17:58 ..
drwxrwxr-x 6 ora10gas dba 96 Jan 4 20:26 mydir
drwxrwxr-x 7 ora10gas dba 96 Jan 4 17:07 mydir~1
drwxrwxr-x 5 ora10gas dba 22528 Jan 4 22:09 mydirout
VK2COT
Honored Contributor
Solution

Re: Unexpected Tilde character on directoryname

Hello,

I am almost confident that it is Windows
client that is causing it.
Depending on the setup of your
Samba on the HP-UX server and the way the
Windows users access the files,
they probably save the original versions
before making changes.

Cheers,

VK2COT
VK2COT - Dusan Baljevic