Re: Re[2]: Question regarding shell user creation at login time

2004-04-02 Thread David Taylor
On Tue, 30 Mar 2004, ghos wrote: You wrote 29 mar 2004, 8:05:55 +0500: Hi, I traced sshd using ktrace and it says: .. 10198 new CALL setuid(0) 10198 new RET setuid -1 errno 1 Operation not permitted 10198 new CALL

Re[2]: Question regarding shell user creation at login time

2004-03-29 Thread ghos
You wrote 29 mar 2004, 8:05:55 +0500: Hi, I traced sshd using ktrace and it says: .. 10198 new CALL setuid(0) 10198 new RET setuid -1 errno 1 Operation not permitted 10198 new CALL execve(0x80485d0,0xbfbfed8c,0xbfbfed94) 10198 new NAMI

Re: Question regarding shell user creation at login time

2004-03-28 Thread Ganbold
Hi, I traced sshd using ktrace and it says: .. 10198 new CALL setuid(0) 10198 new RET setuid -1 errno 1 Operation not permitted 10198 new CALL execve(0x80485d0,0xbfbfed8c,0xbfbfed94) 10198 new NAMI /home/new/new.pl 10198 new RET execve -1 errno 13

Re: Question regarding shell user creation at login time

2004-03-28 Thread Sean Kelly
Please don't crosspost. I don't think this is a topic for -current, so I've removed it. On Mon, Mar 29, 2004 at 11:05:55AM +0900, Ganbold wrote: 10198 new CALL setuid(0) 10198 new RET setuid -1 errno 1 Operation not permitted Your attempt to setuid(0) failed. 10198 new

Re: Question regarding shell user creation at login time

2004-03-28 Thread Robert Watson
On Mon, 29 Mar 2004, Ganbold wrote: Hi, I traced sshd using ktrace and it says: .. 10198 new CALL setuid(0) 10198 new RET setuid -1 errno 1 Operation not permitted 10198 new CALL execve(0x80485d0,0xbfbfed8c,0xbfbfed94) 10198 new NAMI /home/new/new.pl

Re: Question regarding shell user creation at login time

2004-03-28 Thread Dan Nelson
In the last episode (Mar 28), Sean Kelly said: On Mon, Mar 29, 2004 at 11:05:55AM +0900, Ganbold wrote: 10198 new CALL setuid(0) 10198 new RET setuid -1 errno 1 Operation not permitted Your attempt to setuid(0) failed. 10198 new CALL

Question regarding shell user creation at login time

2004-03-25 Thread Ganbold
Hi, I'm using FreeBSD 5.2-CURRENT and I'm trying to write a small C program which in turn calls perl script. Perl script creates user account. I created user called new and put new.c and new.pl into its directory. Then I changed shell for user new to point to /home/new/new. The idea is I want

Re: Question regarding shell user creation at login time

2004-03-25 Thread Ganbold
Hi, I tested my perl script, C program in FreeBSD 4.9, all work just fine. I checked OpenSSH version and: FreeBSD 4.9 - OpenSSH_3.5p1 FreeBSD-20030924 FreeBSD 5.2-CURRENT - OpenSSH_3.8p1 FreeBSD-20040226 Is this difference causing the problem? Should I change something