10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all..
so i have a problem i need to solve ..
#! /bin/bash
$SHELL
dtterm -title my_prog -e su -user -c 'export DISPLAY=:0.0 ; /path/to/my/prog' & 2> /dev/null
$SHELL
intr
exit
This script will work on solaris 10 system in right clikt menu - in a secure system so i need to... (0 Replies)
Discussion started by: defs
0 Replies
2. UNIX for Dummies Questions & Answers
Hi,
There is a process ( built in C/C++) which starts with my user id and I need to execute a specific function with a different user id. Is there any api so that I provide userid, passwd and the next instance the process will have the new user id privileges.
- Pranav (3 Replies)
Discussion started by: k_pranava
3 Replies
3. Solaris
This is a fairly complex issue. I do not have a lot of knowledge on X11. But here are the things.
I am running a program called Synergy off a Solaris server. The server sits in a remote network and can be accessed via NAT. Using Putty, I will enable X11 forwarding and launch Synergy via Putty.... (0 Replies)
Discussion started by: Leion
0 Replies
4. Shell Programming and Scripting
I have a bash script that launches another problem. I need to run that program under a certain user account. The script itself is run using 'sudo <scriptname>'.
#!/bin/bash
myprogram=...
exec "$myprogram"
How would this be done? (1 Reply)
Discussion started by: Carson Dyle
1 Replies
5. Programming
I'm on a Linux machine and need a program that will display user information as follows: user name, user directory and current date & time.
I think we can compile C, C++ and Perl.
All help is appreciated. (4 Replies)
Discussion started by: flasun
4 Replies
6. Shell Programming and Scripting
Hi
I have a question that after trying tirelessly I cant solve. I'm not great wth UNIX and wonder if anyone could help. I have to create a shell program using functions that prompts for a user ID. I must then verify that the user Id corresponds to an account on the system. If a legal user Id is... (16 Replies)
Discussion started by: mmg2711
16 Replies
7. UNIX for Dummies Questions & Answers
Hi
I have a question that after trying tirelessly I cant solve. I'm not great wth UNIX and wonder if anyone could help. I have to create a shell program using functions that prompts for a user ID. I must then verify that the user Id corresponds to an account on the system. If a legal user Id is... (1 Reply)
Discussion started by: mmg2711
1 Replies
8. Shell Programming and Scripting
I have some of programs in unix system which are to started with one_user say "xxxx".
I have sudo permission if i start these programs with sudo it shows root permission. But i want these programs permession should be "xxxx".
I tried "su user_name -c Program_name"
but it is not... (3 Replies)
Discussion started by: srikanthus2002
3 Replies
9. UNIX for Advanced & Expert Users
i have an application that i can call from command line
i can pass arguments to the command specifying the server name, user name and password.
when i give my login information such as username and password in the argument, the command gets executd. as an fyi, i can login using ssh to... (2 Replies)
Discussion started by: bryan
2 Replies
10. Programming
Hi ,
I want to create a new user using c program not with unix adduser command .
is it possible to write a cprogram to create a new user account , it should accept username , grouid , group name and all other privilages .
i can use system calls inside c program to do this .
i will... (5 Replies)
Discussion started by: naren_chella
5 Replies