On Thu, 2006-06-15 at 16:00 +0100, George Borisov wrote:
> Stephen R Laniel wrote:
> >
> > That has to do with what's in /etc/sudoers, I imagine. When
> > I've gotten that error, it's meant that sudoers is
> > configured to only let me run one or two commands.
>
> By default it's not configured t
Stephen R Laniel wrote:
>
> Do you mean that by default, people aren't sudoers? That's
> certainly correct. But if you're not a sudoer, then you
> probably don't have the root password either -- in which
> case it will be impossible for you to run any command
> featuring 'find /'.
What I mean is
On Thu, Jun 15, 2006 at 04:00:49PM +0100, George Borisov wrote:
> By default it's not configured to allow you to run any at all, which is
> what I originally meant.
Do you mean that by default, people aren't sudoers? That's
certainly correct. But if you're not a sudoer, then you
probably don't hav
Stephen R Laniel wrote:
>
> That has to do with what's in /etc/sudoers, I imagine. When
> I've gotten that error, it's meant that sudoers is
> configured to only let me run one or two commands.
By default it's not configured to allow you to run any at all, which is
what I originally meant.
--
On Thu, Jun 15, 2006 at 12:50:52PM +0100, George Borisov wrote:
> Sorry, user george is not allowed to execute '/usr/bin/find / -uid 1000'
> as root on dxs-wksd-195.
That has to do with what's in /etc/sudoers, I imagine. When
I've gotten that error, it's meant that sudoers is
configured to only le
I hate not being able to copy/paste between my two machines :-(
Stephen R Laniel wrote:
>
> On Thu, Jun 15, 2006 at 11:21:24AM +0100, George Borisov wrote:
>>
>> (I've removed the 'sudo' bits, as it would not work with the default
>> setup.)
>
> I'm not sure what you mean. Can you elaborate?
---
Stephen R Laniel wrote:
> On Thu, Jun 15, 2006 at 11:21:24AM +0100, George Borisov wrote:
>> (I've removed the 'sudo' bits, as it would not work with the default
>> setup.)
>
> I'm not sure what you mean. Can you elaborate?
---
$ find / -uid OLDUID | xargs -I [] chown NEWUID []
Password:
Sorry, u
On Thu, Jun 15, 2006 at 11:21:24AM +0100, George Borisov wrote:
> (I've removed the 'sudo' bits, as it would not work with the default
> setup.)
I'm not sure what you mean. Can you elaborate?
--
Stephen R. Laniel
[EMAIL PROTECTED]
Cell: +(617) 308-5571
http://laniels.org/
PGP key: http://laniels
#include
* George Borisov [Thu, Jun 15 2006, 11:21:24AM]:
> Stephen R Laniel wrote:
> >
> > sudo find / -uid [old UID] |xargs -i sudo chown [new UID] '{}'
>
> Thanks for introducing me to the xargs command - never heard of it
> before, but I am sure it will come in handy some day. :-)
>
> The '
Johannes Zellner wrote:
>
> is there a simple and fast way to change the user id for all files in
> the file system, say from 1234 to 5000?
You can use a simple bash script. Try (as root:)
for f in `find / -uid OLDUID`; do chown NEWUID $f; done
Hope this helps,
--
George Borisov
DXSolutions
Stephen R Laniel wrote:
>
> sudo find / -uid [old UID] |xargs -i sudo chown [new UID] '{}'
Thanks for introducing me to the xargs command - never heard of it
before, but I am sure it will come in handy some day. :-)
The '-i' option is deprecated in xargs from unstable, though.
Alternative seems
On Wed, Jun 14, 2006 at 05:16:05PM -0400, Stephen R Laniel wrote:
> On Wed, Jun 14, 2006 at 05:07:35PM -0400, [EMAIL PROTECTED] wrote:
> > chown --recursive onion: foo
> >
> > will change the owners of all the files in the foo file-tree to onion,
> > and change their gropu IDs accordingly. Leave
On Wed, Jun 14, 2006 at 05:07:35PM -0400, [EMAIL PROTECTED] wrote:
> chown --recursive onion: foo
>
> will change the owners of all the files in the foo file-tree to onion,
> and change their gropu IDs accordingly. Leave off the colons if you
> want them to stay in the old group.
But this will
On Wed, Jun 14, 2006 at 10:02:43PM +0200, Johannes Zellner wrote:
> Hello,
>
> is there a simple and fast way to change the user id for all files in
> the file system, say from 1234 to 5000?
chown --recursive onion: foo
will change the owners of all the files in the foo file-tree to onion,
and
On Wed, Jun 14, 2006 at 05:16:25PM -0400, H.S. wrote:
> >sudo find / -uid [old UID] |xargs -i sudo chown [new UID] '{}'
> Shouldn't it be followed by a semicolon?
Had I done
sudo find / -uid [old UID] -exec chown [new UID] '{}' \;
then yes. But with xargs, no.
--
Stephen R. Laniel
[EMAIL PROTE
Stephen R Laniel wrote:
sudo find / -uid [old UID] |xargs -i sudo chown [new UID] '{}'
Shouldn't it be followed by a semicolon?
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
On Wed, Jun 14, 2006 at 10:02:43PM +0200, Johannes Zellner wrote:
> is there a simple and fast way to change the user id for all files in
> the file system, say from 1234 to 5000?
sudo find / -uid [old UID] |xargs -i sudo chown [new UID] '{}'
--
Stephen R. Laniel
[EMAIL PROTECTED]
Cell: +(617) 3
17 matches
Mail list logo