Take some SYS Admin classes. Once you have completed the training, your questions should have answers.
Wolf ---- Jyotishmaan Ray <[EMAIL PROTECTED]> wrote: > > Dear Wolf > > It still has not solved my problem completely, > > The output is shown below :- > drwxr-xr-x 2 s08-1-5-095 3051 4096 2008-08-21 20:57 s08-1-5-095 > drwxr-xr-x 2 s08-1-5-096 3052 4096 2008-08-21 20:57 s08-1-5-096 > drwxr-xr-x 2 s08-1-5-097 3053 4096 2008-08-21 20:57 s08-1-5-097 > > The group wonership is being shown as gidNumber instead of "s08-1-5-097". > > why ? > > Let me try out till I received a reply from your end. > > At first what i did was manually created the a dir using > > mkdir s08-1-5-097 > > then > > i typed > > id s08-1-5-097 > > And then typed the command:- > > chown 3053:3053 /root/perl/s08-1-5-097 > > ls -l shows the following : > > drwxr-xr-x 2 s08-1-5-097 3053 4096 2008-08-21 21:00 s08-1-5-097 > > here, everything is fine but i do need to show up the owner "uid" only as the > group owner. In bothe cases the uidNumber and gidNumber was used but then why > in the latter case it is not showing up?? > > > Any pointers ?? > > > > > > > > > > > > > > > --- On Thu, 8/21/08, Wolf <[EMAIL PROTECTED]> wrote: > From: Wolf <[EMAIL PROTECTED]> > Subject: Re: What is wrong with this script ?? > To: [EMAIL PROTECTED] > Cc: beginners@perl.org > Date: Thursday, August 21, 2008, 8:05 PM > > ---- Jyotishmaan Ray <[EMAIL PROTECTED]> wrote: > > > > No it does nt work out as shown below:- > > > > > > [EMAIL PROTECTED] perl]# chown s08-1-5-095:s08-1-5-095 > > /root/perl/s08-1-5-095 > > chown: `s08-1-5-095:s08-1-5-095': invalid group > > [EMAIL PROTECTED] perl]# chown $s08-1-5-095:$s08-1-5-095 > /root/perl/s08-1-5-095 > > > > [EMAIL PROTECTED] perl]# chown $s08-1-5-095:$s08-1-5-095 > $/root/perl/s08-1-5-095 > > chown: invalid option -- 1 > > Try `chown --help' for more information. > > > <!-- SNIP --> > > > > try using: > > chown $id:$gid $dir > > > > so that it would be > > chown 3051:3051 /home/users/s01-5-097 (or whatever) > > Obviously you didn't follow the examples I provided, or you would have seen > that it should have worked, considering it works the world over on all *NIX > systems I have ever encountered. > > Please read further into your sys admin manuals and the manual pages for > chown. > Once you have fixed your errors, the command will work. Unitil you have > fixed > your errors though, the issues will remain. > > Wolf > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/