Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

chown for directories with . and space

 
   Soft32 Home -> Linux -> Red Hat RSS
Next:  Pb sauvegarde linux  
Author Message
Darryl Bach

External


Since: Nov 07, 2007
Posts: 2



(Msg. 1) Posted: Wed Nov 07, 2007 10:12 am
Post subject: chown for directories with . and space
Archived from groups: alt>os>linux>redhat (more info?)

Hello All:

I've been looking everywhere and can't find a solution. Our helpdesk has set
up some accounts using names like First Name or First.Name but these
directories are causing system problems becuase they are UID and GID 0. I'm
trying to do a chown firstname:lastname but the shell only interputs what's
before the space or period. Is there some syntax which will allow me to chown
or del these directories?

Thanks for any help or suggestions.

Darryl
Back to top
Login to vote
Bit Twister

External


Since: Dec 18, 2004
Posts: 139



(Msg. 2) Posted: Wed Nov 07, 2007 10:49 am
Post subject: Re: chown for directories with . and space [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Wed, 07 Nov 2007 16:12:33 GMT, Darryl Bach wrote:
> Hello All:
>
> I've been looking everywhere and can't find a solution. Our helpdesk has set
> up some accounts using names like First Name or First.Name but these
> directories are causing system problems becuase they are UID and GID 0. I'm
> trying to do a chown firstname:lastname but the shell only interputs what's
> before the space or period. Is there some syntax which will allow me to chown
> or del these directories?

Try putting quotes around them, rm "/home/Darryl Bach" Very Happy
Or apostrophes rm '/home/Darryl Bach'
Back to top
Login to vote
Darryl Bach

External


Since: Nov 07, 2007
Posts: 2



(Msg. 3) Posted: Wed Nov 07, 2007 11:03 am
Post subject: Re: chown for directories with . and space [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <slrnfj3r4p.h1p.BitTwister RemoveThis @wb.home.invalid>, Bit Twister <BitTwister RemoveThis @mouse-potato.com> wrote:
>On Wed, 07 Nov 2007 16:12:33 GMT, Darryl Bach wrote:
>> Hello All:
>>
>> I've been looking everywhere and can't find a solution. Our helpdesk has set
>> up some accounts using names like First Name or First.Name but these
>> directories are causing system problems becuase they are UID and GID 0. I'm
>> trying to do a chown firstname:lastname but the shell only interputs what's
>> before the space or period. Is there some syntax which will allow me to
> chown
>> or del these directories?
>
>Try putting quotes around them, rm "/home/Darryl Bach" Very Happy
>Or apostrophes rm '/home/Darryl Bach'

I tried quotes but not apostrophes, thanks
Back to top
Login to vote
Unruh

External


Since: Aug 14, 2005
Posts: 224



(Msg. 4) Posted: Wed Nov 07, 2007 6:23 pm
Post subject: Re: chown for directories with . and space [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

dbach RemoveThis @seaside.ns.ca (Darryl Bach) writes:

>Hello All:

>I've been looking everywhere and can't find a solution. Our helpdesk has set
>up some accounts using names like First Name or First.Name but these
>directories are causing system problems becuase they are UID and GID 0. I'm
>trying to do a chown firstname:lastname but the shell only interputs what's
>before the space or period. Is there some syntax which will allow me to chown
>or del these directories?

>Thanks for any help or suggestions.

Put the names in single quotes.
(NOte that the . causes no trouble whatsoever to any Unix command. It is a
regular character.)


>Darryl
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Dovecot question - Hi, I setting up a new mail server with postfix for smtp and dovecot for pop3 on a CentOS 4 machine. Both postfix..

Download Linux eBooks for Red Hat Certifications -- Free - [b:eef70ab027]For RHCE, RHCT, RHCA, RHCSS Aspirants [/b:eef70ab027]..

[gentoo-user] Apache2 things vhost directories are not dir.. - With the following vhost.conf, I'm getting an error "DocumentRoot must be a directory", and the two document ...

Stupid Mistake with chown - I have made a really stupid error. I have a server running Red Hat Enterprise 3. I had sudo access to do anything on th...

System broken with chown -R as root - Subject: System broken with chown -R as root NGs:..

kernel space to user space /bin/sh startup - I am trying to boot linux on a PXA270 and I think I almost have it but the shell seems to not be outputting to the..
       Soft32 Home -> Linux -> Red Hat All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]