|
List Info
Thread: su: not running setuid
|
|
| su: not running setuid |
  India |
2007-10-22 13:51:48 |
Hi all,
I have run chown -R uname:wheel . as root in the /
directory. Now it is not
allowing me to log in as su.
Giving the following error
su
su: not running setuid
I have also tried su -l but still same error. Can any body
suggest me some
solution to this problem.
uname -a
FreeBSD mayankjain.in.niksun.com 6.2-RC1-p1 FreeBSD
6.2-RC1-p1 #0: Mon Dec 4
09:56:16 UTC 2006
root i386-builder.daemonology.net:/usr/obj/usr/src/sys/SMP
i386
I have also tried following but it didn't allow me to do
so.
chown root:wheel /usr/bin/su
chown: /usr/bin/su: Operation not permitted
--
Regards
Mayank Jain(Nawal)
Niksun
9818390836
www.mayankjain.110mb.com
_______________________________________________
freebsd-questions freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe freebsd.org"
|
|
| Re: su: not running setuid |
  United States |
2007-10-22 13:41:38 |
On Oct 22, 2007, at 11:51 AM, Mayank Jain wrote:
> I have run chown -R uname:wheel . as root in the /
directory. Now
> it is not
> allowing me to log in as su.
> Giving the following error
Ouch-- you've managed to reset the setuid/setgid bits for
the entire
system.
You'll probably need to do a buildworld/installworld cycle
or a
reinstall to get this fixed.
--
-Chuck
_______________________________________________
freebsd-questions freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe freebsd.org"
|
|
| Re: su: not running setuid |
  United States |
2007-10-22 13:36:47 |
On Mon, 2007-10-22 at 18:51 +0000, Mayank Jain wrote:
> Hi all,
>
> I have run chown -R uname:wheel . as root in the /
directory. Now it is not
> allowing me to log in as su.
> Giving the following error
>
> su
> su: not running setuid
>
> I have also tried su -l but still same error. Can any
body suggest me some
> solution to this problem.
>
> uname -a
> FreeBSD mayankjain.in.niksun.com 6.2-RC1-p1 FreeBSD
6.2-RC1-p1 #0: Mon Dec 4
> 09:56:16 UTC 2006
> root i386-builder.daemonology.net:/usr/obj/usr/src/sys/SMP
i386
>
> I have also tried following but it didn't allow me to
do so.
> chown root:wheel /usr/bin/su
> chown: /usr/bin/su: Operation not permitted
Well, you've broke that, then.
You have to restore correct owners to everything correctly.
The only thing I can think of is a fresh install, which I
seem to recall
doesn't overwrite your home dirs, or /usr/local (can anyone
back me up
on this?) and never, ever run a recursive ownership change
from / again,
ever. Ever.
I'm not even certain you could manage a buildworld from
here. Judging
from the fact tat you're running RC1-p1, I'd guess that you
may not even
be familiar with what a buildworld is, is that right?
Why did you do that, incidentally? Whatever result you were
trying to
achieve can probably be accomplished once your system is
running
correctly, so let's find out what it was.
James
_______________________________________________
freebsd-questions freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe freebsd.org"
|
|
| Re: su: not running setuid |

|
2007-10-22 14:28:05 |
If you executed the command you claim you did, you're system
permissions are really screwed up. You've changed ownership
of
*EVERY* file on the system to uname:wheel. My best guess is
that su
is trying to run as uname (setuid) and it's not getting the
permissions is needs.
4th and long I'm guessing. You're best of to punt and
reinstall.
Can you even log in as root from the console?
Eric
On Oct 22, 2007, at 1:51 PMOct 22, 2007, Mayank Jain wrote:
> Hi all,
>
> I have run chown -R uname:wheel . as root in the /
directory. Now
> it is not
> allowing me to log in as su.
> Giving the following error
>
> su
> su: not running setuid
>
> I have also tried su -l but still same error. Can any
body suggest
> me some
> solution to this problem.
>
> uname -a
> FreeBSD mayankjain.in.niksun.com 6.2-RC1-p1 FreeBSD
6.2-RC1-p1 #0:
> Mon Dec 4
> 09:56:16 UTC 2006
> root i386-builder.daemonology.net:/usr/obj/usr/src/sys/SMP
i386
>
> I have also tried following but it didn't allow me to
do so.
> chown root:wheel /usr/bin/su
> chown: /usr/bin/su: Operation not permitted
>
> --
> Regards
> Mayank Jain(Nawal)
> Niksun
> 9818390836
> www.mayankjain.110mb.com
> _______________________________________________
> freebsd-questions freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
> To unsubscribe, send any mail to
"freebsd-questions-
> unsubscribe freebsd.org"
-----
Eric F Crist
Secure Computing Networks
_______________________________________________
freebsd-questions freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe freebsd.org"
|
|
| Is it difficult to move from Linux? |
  United Kingdom |
2007-10-22 13:33:57 |
Hi,
I have been using Linux for over 10 years, but have for a
number of reasons
become very interested in learning to use FreeBSD. Are there
any ex or
current Linux users here and could you tell me how hard it
is to make the
shift from Linux? Is there anything in particular which has
been written
which would be useful to read?
T.I.A.
_______________________________________________
freebsd-questions freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe freebsd.org"
|
|
| Re: su: not running setuid |
  United States |
2007-10-22 15:21:57 |
On Mon, Oct 22, 2007 at 06:51:48PM +0000, Mayank Jain
wrote:
> Hi all,
>
> I have run chown -R uname:wheel . as root in the /
directory. Now it is not
> allowing me to log in as su.
> Giving the following error
>
> su
> su: not running setuid
>
> I have also tried su -l but still same error. Can any
body suggest me some
> solution to this problem.
>
> uname -a
> FreeBSD mayankjain.in.niksun.com 6.2-RC1-p1 FreeBSD
6.2-RC1-p1 #0: Mon Dec 4
> 09:56:16 UTC 2006
> root i386-builder.daemonology.net:/usr/obj/usr/src/sys/SMP
i386
>
> I have also tried following but it didn't allow me to
do so.
> chown root:wheel /usr/bin/su
> chown: /usr/bin/su: Operation not permitted
Unless you can find some local privilege escalation exploit,
I'm
thinking you're stuck. You can probably fix it in
single-user mode:
* Reboot
* Pick single user mode from the boot menu
* Accept the default shell
$ fsck -p
$ mount -u /
$ mount -a -t ufs
$ chown root /usr/bin/su
But if the command above ran to completion, you probably
have a mess of
permissions on your filesystem. You may want to look into
rebuilding /
reinstalling world while you're in single.
Good luck...
--
Chris Cowart
Lead Systems Administrator
Network & Infrastructure Services, RSSP-IT
UC Berkeley
|
|
| Re: Is it difficult to move from Linux? |
  United Kingdom |
2007-10-22 18:47:13 |
On Mon, Oct 22, 2007 at 07:33:57PM +0100, Donovan R. Palmer
wrote:
> I have been using Linux for over 10 years, but have for
a number of reasons
> become very interested in learning to use FreeBSD. Are
there any ex or
> current Linux users here and could you tell me how hard
it is to make the
> shift from Linux? Is there anything in particular
which has been written
> which would be useful to read?
Depends, really. For the average desktop user, there's no
difference
whatsover - Gnome, KDE, etc., are basically identical on
both platforms.
From an administration point of view, things are in
different places - but
if you've used more than a couple of GNU/Linux distributions
you may have
encountered this anyway.
The only difficulty I've had is in portability of things
like shell
scripts and Makefiles between the two; options supported in
one version of
a program may not always be supported in the other and/or
may
work differently (this isn't to say BSD is worse, just
different).
A couple of links:
http://www.onlamp.com/pub/a/bsd/2004/11/11/FreeBSD
_Basics.html
http://www.over-yonder.net/~fullermd/rants/bs
d4linux/bsd4linux1.php
--
Benjamin A'Lee <bma subvert.org.uk>
http://subvert.org.uk/~bm
a/
"If you can't explain it simply, you don't understand
it well enough." -
Albert Einstein
|
|
| Re: Is it difficult to move from Linux? |
  United States |
2007-10-22 19:12:49 |
On Mon, Oct 22, 2007 at 07:33:57PM +0100, Donovan R. Palmer
wrote:
> Hi,
>
> I have been using Linux for over 10 years, but have for
a number of reasons
> become very interested in learning to use FreeBSD. Are
there any ex or
> current Linux users here and could you tell me how hard
it is to make the
> shift from Linux? Is there anything in particular
which has been written
> which would be useful to read?
There are lots of them.
The best thing to do is start going through the FreeBSD
Handbook.
Go to:
http://www.freebsd.org/
Click on documentation and then on the handbook. It is all
there.
The faqs and other online publications can also be helpful
as well
as some books such as FreeBSD Unleashed and others,
depending on
how much you want to know and how much you just want to
tinker around.
Then, just download the latest RELEASE install CD, burn it
and
following the Handbook, do an install.
It is structured a little differently and some names are
different.
What Microsloth calls primary partitions are 'slices' in BSD
and
then slices are further divided in to partitions on which
you
build file systems. The installer takes care of all that
if you
want, but it helps to know.
////jerry
>
> T.I.A.
>
> _______________________________________________
> freebsd-questions freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe freebsd.org"
_______________________________________________
freebsd-questions freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe freebsd.org"
|
|
| Re: Is it difficult to move from Linux? |
  United States |
2007-10-22 19:24:00 |
On October 22, 2007 02:33:57 pm Donovan R. Palmer wrote:
> Hi,
>
> I have been using Linux for over 10 years, but have for
a number of reasons
> become very interested in learning to use FreeBSD. Are
there any ex or
> current Linux users here and could you tell me how hard
it is to make the
> shift from Linux? Is there anything in particular
which has been written
> which would be useful to read?
>
> T.I.A.
>
> _______________________________________________
> freebsd-questions freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe freebsd.org"
I think it is a very easy shift. It doesn't take long to
learn that the file
structure is a bit different - as an easy example, many
things in /usr/bin in
Linux are in /usr/local/bin in FreeBSD. The FreeBSD
Handbook is a superb
resource, bringing everything together in a single document.
For a system
running KDE or GNOME, it is hard to tell the difference.
The software
installation system (source-based ports or binary packages)
are about as easy
to use as apt-get or its equivalents.
--
Mike Jeays
http://www.jeays.ca
_______________________________________________
freebsd-questions freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe freebsd.org"
|
|
| Re: Is it difficult to move from Linux? |

|
2007-10-22 19:42:14 |
On Mon, Oct 22, 2007 at 07:33:57PM +0100, Donovan R. Palmer
wrote:
>
> I have been using Linux for over 10 years, but have for
a number of reasons
> become very interested in learning to use FreeBSD. Are
there any ex or
> current Linux users here and could you tell me how hard
it is to make the
> shift from Linux? Is there anything in particular
which has been written
> which would be useful to read?
I found it dead easy -- much, much easier than making the
switch from MS
Windows to Linux was.
The best source of information on FreeBSD for new FreeBSD
users is, in my
opinion, the FreeBSD handbook:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handb
ook/
Another excellent source of information is The Complete
FreeBSD:
http:/
/www.lemis.com/grog/Documentation/CFBSD/
There are a couple other books out there that I've found to
be quite
excellent, as well.
In general, I think you'll find much of the differences
between most
Linux distributions and FreeBSD quite minor, but a touch
strange at
first, and in the long run very positive. At least, that's
my
experience.
--
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org
]
They always say that when life gives you lemons you should
make lemonade.
I always wonder -- isn't the lemonade going to suck if life
doesn't give
you any sugar?
_______________________________________________
freebsd-questions freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe freebsd.org"
|
|
|
|