[K12OSN] chown script help needed (word of caution)

John Baillie jbaillie at stmarys-school.org
Mon Sep 5 03:27:33 UTC 2005


Michael C Wescott wrote:

>On Sun, 2005-09-04 at 15:25 -0400, John Baillie wrote:
>  
>
>>Les Mikesell wrote:
>>
>>    
>>
>>>I don't think you can physically embed a / in a file or directory
>>>name.  
>>>
>>>      
>>>
>>I was shocked! but alas it's true.
>>    
>>
>
>Right. There are two characters not permitted in file names. One is
>the / since it is used as the separator.  The other is the nul
>character (0x00) since it is used as the terminator of the pathname
>string. A pathname that end in a / (like "/home/xxx/") is actually
>interpreted as "/home/xxx/." and is as valid as "/home/xxx".
>
>
>_______________________________________________
>K12OSN mailing list
>K12OSN at redhat.com
>https://www.redhat.com/mailman/listinfo/k12osn
>For more info see <http://www.k12os.org>
>
>  
>

Mostly true but

mkdir "bad /"

will create it, not to mention the webmin bulk user script.





More information about the K12OSN mailing list