Operating System - HP-UX
1837646 Members
3201 Online
110117 Solutions
New Discussion

Blank in Samba Share Directory Name

 
Stuart D. Gant
New Member

Blank in Samba Share Directory Name

A user cannot delete a file on a samba share with "does not support extended attributes error". I wanted to look on the UNIX side but am unable to change directory to:
/support/apps/samba/sharing/Project Documentation

Note the blank between Project and Documentation. I tried \ to escape and other regular expressions, quoting/etc. but when the blank gets substituted all I get from the shell is errors like the following:

root@gold:/support/apps/samba/sharing# echo $TEMP
Project Documentation
root@gold:/support/apps/samba/sharing# cd $TEMP
sh[52]: Project: not found.
root@gold:/support/apps/samba/sharing# cd
root@gold:/support/apps/samba/sharing# cd "Project Documentation"
sh[52]: cd: The specified substitution is not valid for this command.

How can I cd into this directory to see the file names under Project Documentation folder. CAn see them from the Windows share, but can not delete the files below there that have the extended attributes error.
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Blank in Samba Share Directory Name

Please tell me:

1) Version of Samba on the server
2) OS of the client.

I believe this should be supported.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
A. Clay Stephenson
Acclaimed Contributor

Re: Blank in Samba Share Directory Name

Blanks (spaces) are perfectly legal in UNIX pathnames -- they are merely discouraged because of exactly the parsing difficulties you face.

/support/apps/samba/sharing/Project Documentation

doesn't work but:

'/support/apps/samba/sharing/Project Documentation'

You need to quote (single or double quootes will work) pathnames that contain spaces.




If it ain't broke, I can fix that.
Stuart D. Gant
New Member

Re: Blank in Samba Share Directory Name

The single quotes produces same shell error:

root@gold:/support/apps/samba/sharing# cd 'Project Documentation'
sh[52]: cd: The specified substitution is not valid for this command.
root@gold:/etc/opt/samba#
HP-UX version is 11.00

Samba version is:

CIFS-Server A.01.07 CIFS/9000 (Samba) File and Print Services

I tried listing non-printing characters to see if something else is there but it is a blank and ls can find subdirs. with a wild card and rm would also but do not watn to rm -i there is tons of stuff there. I would like to cd into these cirectories: Note this listing

root@gold:/support/apps/samba/sharing# ls -bd Project*
Project Documentation/ Projects - Active/