Sponsored Content
Top Forums Shell Programming and Scripting Question: Automatic launching of a CLI menu upon login (OpenBSD) Post 302514434 by alister on Friday 15th of April 2011 04:46:30 PM
Old 04-15-2011
Hi, stefan:

You'll have to setup sudo to allow the user your script runs as to use privileged pfctl features (same for other commands to alter the system's routing table, network interfaces, dns configuration, etc), unless you intend to run a suid shell script (the mere mention of it ... *gasp*). Smilie

Regards and welcome to the forum,
Alister
 

10 More Discussions You Might Find Interesting

1. BSD

openbsd : cannot login

hi OK. I don't know exactly what I did to system! The system is OpenBSD 3.5. It is 200MMX, 16MB ram 1.2 + 2.4 GB HDD. The system was running well. But a few days ago I try to unpack a big tar.gz file and the system uses most the cpu and ram for this. While the system unpacking the file I try to... (4 Replies)
Discussion started by: fnoyan
4 Replies

2. UNIX for Advanced & Expert Users

Automatic time out of user login

I have asked by our security team to implement an automatic time out for user logins after a specified time interval. I have never heard of this feature in Unix before. Does anyone know of a way to accomplish this for HP-UX 11i? (2 Replies)
Discussion started by: keelba
2 Replies

3. Shell Programming and Scripting

Automatic login script

Hi, I'm a beginner in unix.As a part of my script i need to remote logon using ssh. my script run as being asked for password and logons only after the user enters the password correctly. But my script stops executing after that as I login to a different server(different shell if i'm right).... (3 Replies)
Discussion started by: dayanand
3 Replies

4. UNIX for Advanced & Expert Users

Automatic login

Hello all, I need a script that can run an sftp session into a remote server, and retreive a file. Does anyone know how to pass in the user/password details in a script? I seem to have forgotten (5 Replies)
Discussion started by: Khoomfire
5 Replies

5. Solaris

Automatic login

Hi, Boss I have a question.... BackGround: i have a shell name xxxLineInput.x the useage is: xxxLineInput.x -Txxx -Uxxx -Pxxx when i use the command line..can run normal. Target: i want to set automatic login, the mean is when i login the as the specifical... (0 Replies)
Discussion started by: surainbow
0 Replies

6. UNIX for Dummies Questions & Answers

Automatic login

I need a script that will let me connect to my hpux server with just a click of the icon without type my username and password. (5 Replies)
Discussion started by: tree740
5 Replies

7. Slackware

Automatic login without X

I know how to set up KDM or GDM to do automatic login, but is there a way to do it without GDM or KDM or X at all so when I start the machine I am immediately taken to a waiting command prompt? Thanks (5 Replies)
Discussion started by: raidzero
5 Replies

8. UNIX for Dummies Questions & Answers

Automatic login at startup

Hi, how can I set my linux server that it logs in the main user at startup? I would like to be able to make a restart remotely and be able to connect to the server again afterwards. The problem is that the server waits for a login and than connects to the network. So at the beginning at... (5 Replies)
Discussion started by: borobudur
5 Replies

9. Solaris

Automatic Login to Desktop

On Solaris 11 is it possible to bypass the userid/password requirement to automatically login to the desktop ? I'm the sole user and it is really not necessary to secure the system. I have searched this forum and have not found a relevant post. (2 Replies)
Discussion started by: stansaraczewski
2 Replies

10. Web Development

Scheduling automatic Internet explorer login

Hi , I am using windows XP and IE8 I have my credentials stored for a website in internet explorer. I want to implement below scenario. I have entered both username/password for a website and left IE explorer open and locked my computer I want the computer to login in that website... (1 Reply)
Discussion started by: Jcpratap
1 Replies
ISSETUGID(2)						      BSD System Calls Manual						      ISSETUGID(2)

NAME
issetugid -- is current executable running setuid or setgid SYNOPSIS
#include <unistd.h> int issetugid(void); DESCRIPTION
The issetugid() function returns 1 if the process was made setuid or setgid as the result of the last execve() system call. Otherwise it returns 0. This system call exists so that library routines (inside libc, libtermlib, or other libraries) can gaurantee safe behavior when used inside setuid or setgid programs. Some library routines may not be passed sufficient information to know if the current program was started setuid or setgid because higher level calling code may have made changes to the uid or the euid. In particular, it is wise to use this call to determine if a pathname returned from a getenv() call may safely be used to open() the specified file. issetugid() is unaffected by calls to setuid(), fork(), and other such calls. It is only controlled by execve(). ERRORS
The issetugid() function is always successful, and no return value is reserved to indicate an error. SEE ALSO
execve(2), setuid(2), seteuid(2,) setgid(2), setegid(2) HISTORY
A lstat() function call appeared in OpenBSD 2.0 OpenBSD 2.0 August, 25 1996 OpenBSD 2.0
All times are GMT -4. The time now is 06:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy