List Info

Thread: su: not running setuid




Re: Is it difficult to move from Linux?
user name
2007-10-22 20:52:24
> 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 have had a reason to run Linux, and have been running
FreeBSD for
nearly 10 years, so I'm backwards to your situation.

Personally, I find it difficult to operate under a Linux
platform, and
I'll explain why without trying to start a flame war.

My boxes that run FreeBSD do not have a GUI. I found that
many of the
Linux commands, start up scripts, configuration files et-al
were in
the Wrong Place (relative).

Essentially, it's as simple as that. If you want to cross
platforms
like I've had to do from time to time, the majority of stuff
comes
near-naturally, and what doesn't, Google will take up the
slack.

You have come to a good place if you need to move forward
with FBSD,
and especially with a 10 yr background in *nix to begin
with, a little
time in frustration of learning the new locations of files
it should
be a cakewalk.

What to read? Start with the FreeBSD handbook. One could say
that it's
TFM to begin with ;)

Steve

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: Is it difficult to move from Linux?
country flaguser name
United Kingdom
2007-10-22 21:07:41
On Mon, 22 Oct 2007 19:33:57 +0100
"Donovan R. Palmer" <donovandmpnet.org> 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?

I have very little experience of Linux; I 'found' FreeBSD
long before
I had even heard of it! I read an article recently which
expresses
what it was like for someone who recently converted:

http://penguinpetes.com/b2evo/index.php?title=the
_bsd_community_compared_to_the_linux_&more=1&c=1&
;tb=1&pb=1

I've heard some Linux users complain about the installer.
Words like
"arcane" were used. If you think you may struggle
with that, then may
I reccommend PC-BSD. I've been using it on a spare PC for a
while now
and really like it. It's installer is better than any of the
few Linux
distros I've tried. It's based on FreeBSD of course (Stable
I believe).

As for what to read; The Handbook is a must:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handb
ook/

-- 
Thanks, John.
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: Is it difficult to move from Linux?
user name
2007-10-22 22:53:12
DONOVAN,

ON MON, 2007-10-22 AT 19:33 +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?

JUST MY STORY.. I MOVED TO FREEBSD FROM LINUX FIVE YEARS
AGO. SHELL IS
ONLY THING I FELT DIFFICULT. BUT NOW I AM USING TCSH INSTEAD
OF BASH.
ASIDE FROM THAT, EVERYTHING IS OK ;;

SINCERELY,

-- 
BYUNG-HEE HWANG * ??????? * INZEALBOMB 
"GET IN THE CAR. IF I WANTED TO KILL YOU YOU'D BE DEAD
NOW. TRUST ME."
		-- VIRGIL SOLLOZZO, "CHAPTER 2", PAGE 77
_______________________________________________
FREEBSD-QUESTIONSFREEBSD.ORG MAILING LIST
HTTP://LISTS.FREEBSD.ORG/MAILMAN/LISTINFO/FREEBSD-QUESTIONS
TO UNSUBSCRIBE, SEND ANY MAIL TO
"FREEBSD-QUESTIONS-UNSUBSCRIBEFREEBSD.ORG"

Re: su: not running setuid
country flaguser name
India
2007-10-23 04:32:57
Hi,
No I am not able to login as root from other consoles also.

I am able to ssh on this machine from other machines and is
able to 
successfully login to this machine but from my console I am
now even not able 
to login to this machine. It is not accepting my uname and
passwd. Looks like 
I ma stuck at a big trouble.  
-- 
Regards
Mayank Jain(Nawal)
Niksun
9818390836
www.mayankjain.110mb.com 

On Monday 22 October 2007 19:28, Eric Crist wrote:
> 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
> > rooti386-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-questionsfreebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
> > To unsubscribe, send any mail to
"freebsd-questions-
> > unsubscribefreebsd.org"
>
> -----
> Eric F Crist
> Secure Computing Networks
>
>
> _______________________________________________
> freebsd-questionsfreebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribefreebsd.org"
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: su: not running setuid
country flaguser name
India
2007-10-23 04:47:50
Hi,

Thanks a lot!!!
The fix you provided worked for me, I am able to switch from
normal user to su 
but this I am able to do with the help of ssh login only. I
am not able to 
login from my console. When I am trying to login from my
console it is not 
accepting my username and password not even of root. Giving
an error message 
of Login Incorrect. Below are the log messages which I am
getting. 

Oct 23 09:35:39 deepak kernel: Trying to mount root from
ufs:/dev/ad0s4a
Oct 23 09:35:57 deepak sm-mta[682]: NOQUEUE: SYSERR(root):
opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:35:57 deepak sm-mta[682]: daemon Daemon0: problem
creating SMTP 
socket
Oct 23 09:36:02 deepak sm-mta[682]: NOQUEUE: SYSERR(root):
opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:36:02 deepak sm-mta[682]: daemon Daemon0: problem
creating SMTP 
socket
Oct 23 09:36:08 deepak sm-mta[682]: NOQUEUE: SYSERR(root):
opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:36:08 deepak sm-mta[682]: daemon Daemon0: problem
creating SMTP 
socket
Oct 23 09:36:13 deepak sm-mta[682]: NOQUEUE: SYSERR(root):
opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:36:13 deepak sm-mta[682]: daemon Daemon0: problem
creating SMTP 
socket
Oct 23 09:36:18 deepak sm-mta[682]: NOQUEUE: SYSERR(root):
opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:36:18 deepak sm-mta[682]: daemon Daemon0: problem
creating SMTP 
socket
Oct 23 09:36:19 deepak login: 2 LOGIN FAILURES ON ttyv0
Oct 23 09:36:23 deepak sm-mta[682]: NOQUEUE: SYSERR(root):
opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:36:23 deepak sm-mta[682]: daemon Daemon0: problem
creating SMTP 
socket
Oct 23 09:36:28 deepak sm-mta[682]: NOQUEUE: SYSERR(root):
opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:36:28 deepak sm-mta[682]: daemon Daemon0: problem
creating SMTP 
socket
Oct 23 09:36:33 deepak sm-mta[682]: NOQUEUE: SYSERR(root):
opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:36:33 deepak sm-mta[682]: daemon Daemon0: problem
creating SMTP 
socket
Oct 23 09:36:39 deepak sm-mta[682]: NOQUEUE: SYSERR(root):
opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:36:39 deepak sm-mta[682]: daemon Daemon0: problem
creating SMTP 
socket
Oct 23 09:36:44 deepak sm-mta[682]: NOQUEUE: SYSERR(root):
opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:36:44 deepak sm-mta[682]: daemon Daemon0: problem
creating SMTP 
socket
Oct 23 09:36:49 deepak sm-mta[682]: NOQUEUE: SYSERR(root):
opendaemonsocket: 
daemon Daemon0: cannot bind: Can't assign reque
sted address
Oct 23 09:36:49 deepak sm-mta[682]: daemon Daemon0: problem
creating SMTP 
socket
Oct 23 09:36:49 deepak sm-mta[682]: NOQUEUE: SYSERR(root):
opendaemonsocket: 
daemon Daemon0: server SMTP socket wedged: exit
ing
Oct 23 09:37:23 deepak su: deepak to root on /dev/ttyp0

Hope you will telll me some quick solution. 


-- 
Regards
Mayank Jain(Nawal)
+91-9818390836
www.mayankjain.110mb.com

On Monday 22 October 2007 20:21, Christopher Cowart wrote:
> 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
> > rooti386-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...
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: Is it difficult to move from Linux?
country flaguser name
United Kingdom
2007-10-23 01:03:44
Friends... thank you for all of your responses. Last night I
read a big 
chunk of the handbook and read articles such as 
http://www.over-yonder.net/~fullermd/rants/bs
d4linux/bsd4linux1.php  Very 
helpful. I was impressed with the quality of the
documentation and I like 
the disciplined approach to FreeBSD.

The more I read, the more I was convinced that FreeBSD was
what I was 
looking for and would satisfy some of my
needs/disillusionment with Linux. 
I look forward to putting it on a box and starting the learn
the 
differences. Many thanks again!

----- Original Message ----- 
From: "Chad Perrin" <perrinapotheon.com>
To: <freebsd-questionsfreebsd.org>
Sent: Tuesday, October 23, 2007 1:42 AM
Subject: Re: Is it difficult to move from Linux?


> 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-questionsfreebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribefreebsd.org"
> 

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: Is it difficult to move from Linux?
country flaguser name
Netherlands
2007-10-23 01:11:22
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 have used Linux for almost 10 years before switching to
FreeBSD. A lot
of the things that I leared while making the switch are
documented on my
FreeBSD webpage; http://www.xs4a
ll.nl/~rsmith/freebsd/

Some highlights;
- services must be enabled in /etc/rc.conf
(foo_enable="YES")
- devices permissions are set in /etc/devfs.conf and
/etc/devfs.rules
- build third party applications from ports, it'll save you
a lot of
  trouble
- mounting filesystems as a non-root user has certain
requirements;
  * the sysctl(8) vfs.usermount must be set to 1.
  * the user or a group that he belongs to must have
read/write
    permission on the device
  * the user must _own_ the mount point

HTH,
Roland
-- 
R.F.Smith                                   http://www.xs4all.nl/~r
smith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much
appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725
(KeyID: C321A725)
Re: Is it difficult to move from Linux?
country flaguser name
United Kingdom
2007-10-23 01:20:39
Benjamin, I found 
http://www.onlamp.com/pub/a/bsd/2004/11/11/FreeBSD
_Basics.html to be an 
excellent article! Thanks for the link. - DP

----- Original Message ----- 
From: "Benjamin M. A'Lee" <bma+listssubvert.org.uk>
To: <freebsd-questionsfreebsd.org>
Sent: Tuesday, October 23, 2007 12:47 AM
Subject: Re: Is it difficult to move from Linux?


_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: Is it difficult to move from Linux?
country flaguser name
India
2007-10-23 09:07:34
Hi
Using freeBSD is more fun. Installing packages and all that
is very easy. The 
things you can do in LINUX you can surely do with FreeBSD.
Collection of 
large number of ports and the flexibility to modify anything
the way you want 
make it cool. Really after installing FreeBSD I had never
swithched back to 
LINUX.
Hope you will also enjoy working on it. 

On Tuesday 23 October 2007 03:53, Byung-Hee HWANG wrote:
> Donovan,
>
> On Mon, 2007-10-22 at 19:33 +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?
>
> Just my story.. I moved to FreeBSD from Linux five
years ago. Shell is
> only thing I felt difficult. But now I am using tcsh
instead of bash.
> Aside from that, everything is OK ;;
>
> Sincerely,

-- 
Regards
Mayank Jain(Nawal)
http://mayankjain.110mb.
com/
+91-9818390836
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

Re: Is it difficult to move from Linux?
country flaguser name
Iran, Islamic Republic of
2007-10-23 03:08:41
On 2007-10-22 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?
> 
I've been a Linux user for more than 6 years until 4-5
months ago when
I found some old 20GB HDD and decided to give FreeBSD a try.
 Believe
it or not after 1 month of playing with FreeBSD I removed my
Linux
installation from the main HDD and installed FreeBSD as the
main and
only OS on my machine!  So, as you can see it'll be an easy
shift for
an average Linux user -like me.

In fact many concepts are similar to those of Linux however
there are
differences.  What I did for learning FreeBSD was
1. Reading the documentation -when required- that is bundled
in FreeBSD
installation disks and also is available online on
www.freebsd.org.
2. Reading man pages.
3. Subscribing to Questions, Current and Stable mailing
lists
(www.freebsd.org).

You're not likely to become a FreeBSD expert in 1 month but
in my
experience I was feeling friendly and at home in FreeBSD
after about
1.5 months.

Bahman
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"

[1-10] [11-20] [21-30] [31]

about | contact  Other archives ( Real Estate discussion Medical topics )