I'm going to not CC beginners@perl.org after this point since I don't think this is a perl question right now. Please speak up if you want to be included in this thread.

I'm not sure you understood my previous question. I was asking if such things as chgrp, chown, etc work from the shell -- not from perl.

Two questions right now:

1) Does everything else work except the chgrp command? For example, does the chown work? (assuming you are logged in as root or you use sudo).

2) Pick a user name that is in the LDAP server list s08-1-5-093 and do "id usersId" e.g. "id s08-1-5-093" .. let me see the results.

The users are probably all in the same group. I'm hoping the id command will give me that group. Some systems it will, others it will not.

Lets suppose the output from id is something like this:

uid=503(pedzan) gid=20(staff) groups=20(staff), 103(com.apple.sharepoint.group.3),98(_lpadmin), 102(com.apple.sharepoint.group.2),501(perry), 101(com.apple.sharepoint.group.1)

In this case the numeric value of the id is 503 and the numeric value of the group is 20. Find your values for one of your users. Then (as root) try this:

cd /tmp
touch foo
chown 503 foo
chgrp 20 foo
ls -l foo

(the 20 and 503 will be replaced with the numbers you have). See if the ls shows the proper owner/group.


On Aug 21, 2008, at 2:04 AM, Jyotishmaan Ray wrote:

Give some pointers as such to sort out this problem in my cluster servers (fedora-linux) ?





--- On Thu, 8/21/08, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote:
From: Mr. Shawn H. Corey <[EMAIL PROTECTED]>
Subject: Re: What is wrong with this script ??
To: "Perry Smith" <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED], beginners@perl.org
Date: Thursday, August 21, 2008, 4:07 AM

On Wed, 2008-08-20 at 17:25 -0500, Perry Smith wrote:
> I would first verify that you can do what you need to do
 with one
> individual directory from the shell.  i.e. make sure you can chown,
> chgrp, and chmod -- what ever other commands you are needing to do.

On many *NIX systems, commands like chown and chgrp are restricted so
that you cannot steal quotas.  Only sudo users can run them.


--
Just my 0.00000002 million dollars worth,
  Shawn

"Where there's duct tape, there's hope."
        Cross Time Cafe

"Perl is the duct tape of the Internet."
        Hassan Schroeder, Sun's first webmaster



Reply via email to