01-16-2013
Not able to switch to other users using su -user from root
Hi all,
I have a small problem. When I log in as root and try to switch to any other user using su -user, then it is giving an error saying libncurses.so permission denied. Can you help me?
Thank you in advance.
Sai.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Is is possible switch user from a non-root user to root user without entering the password interactively inside a korn shell script which is run by a non-root user?
e.g. I have a non-root user called infodba who is in dba group and I want to create a shell script which is executed by infodba... (5 Replies)
Discussion started by: stevefox
5 Replies
2. UNIX for Advanced & Expert Users
Hi,
I would like to know if there is anyway that I can pinpoint the user before/after he connects to the root? Also, I'm trying to find out what are the commands he inputs under root access. (6 Replies)
Discussion started by: pointgetter0
6 Replies
3. Shell Programming and Scripting
Hi Gurus,
I have a script that requires me to switch from local user to root. Anyone who has an idea on this since when i switch user to root it requires me to input root password.
It seems that i need to use expect module here, but i don't know how to create the object for this.
... (1 Reply)
Discussion started by: linuxgeek
1 Replies
4. UNIX for Dummies Questions & Answers
I've been through many threads before i decide to create a separate thread.
I can't really find the solution to my (simple) problem.
Here's what I'm trying to achieve:
As "canar" user I want to run a command, let's say "/opt/ocaml/bin/ocaml" as "duck" user.
The only to achieve this is to... (1 Reply)
Discussion started by: canar
1 Replies
5. Solaris
Hi,
I am new to Solaris and when i am trying to Switch to root login from user, system throws message saying permissions denied...
Steps I Followed:
Created a user and logged into that user by SU username
tried to come back to root but system throws message "permissions denied"
... (7 Replies)
Discussion started by: VijaySolaris
7 Replies
6. Shell Programming and Scripting
hi, I need to switch users in a script
I'm newbee to expect
I wrote two files
1 sudo.exp, since su4098 is used as root in my laptop
#!/usr/bin/expect
spawn su su4098
expect *Password:*
send mypsw\n
interact
2 test.sh
ls
./sudo.exp
tcpdump -i wlan0
su esolve
ls
however, in... (1 Reply)
Discussion started by: esolve
1 Replies
7. Shell Programming and Scripting
I am writing a korn shell script where i need to switch to root in between and again exit from root to normal user and continue other commands.
Is that possible to switch between these two in the same script? (1 Reply)
Discussion started by: santosh2626
1 Replies
8. Shell Programming and Scripting
I need to list users in /etc/passwd with root's GID or UID or /root as home directory
If we have these entries in /etc/passwd
root:x:0:0:root:/root:/bin/bash
rootgooduser1:x:100:100::/home/gooduser1:/bin/bash
baduser1:x:0:300::/home/baduser1:/bin/bash... (6 Replies)
Discussion started by: anil510
6 Replies
9. Shell Programming and Scripting
Hi everyone:
I need create a script that must switch user and then must execute
certain commands, sadly neither my user nor the second user have no privileges
for su - ,
I've tried everything but seems su doesn't accept input redirection,
please help me,
... (4 Replies)
Discussion started by: ooilinlove
4 Replies
10. Shell Programming and Scripting
Hi,
I need to switch from local user to root user in a shell script.
I need to make it automated so that it doesn't prompt for the root password.
I heard the su command will do that work but it prompt for the password.
and also can someone tell me whether su command spawns a new shell or... (1 Reply)
Discussion started by: Little
1 Replies
FONT(6) Games Manual FONT(6)
NAME
font, subfont - external format for fonts and subfonts
SYNOPSIS
#include <libg.h>
DESCRIPTION
Fonts and subfonts are described in cachechars(2).
External fonts are described by a plain text file that can be read using rdfontfile. The format of the file is a header followed by any
number of subfont range specifications. The header contains two numbers: the height and the ascent, both in pixels. The height is the
inter-line spacing and the ascent is the distance from the top of the line to the baseline. These numbers are chosen to display consis-
tently all the subfonts of the font. A subfont range specification contains two or three numbers and a file name. The numbers are the
inclusive range of characters covered by the subfont, with an optional starting position within the subfont, and the file name names an
external file suitable for rdsubfontfile. The minimum number of a covered range is mapped to the specified starting position (default
zero) of the corresponding subfont. If the subfont file name does not begin with a slash, it is taken relative to the directory containing
the font file. Each field must be followed by some white space. Each numeric field may be C-format decimal, octal, or hexadecimal.
External subfonts are represented in a more rigid format that can be read and written using rdsubfontfile and wrsubfontfile (see subfal-
loc(2)). The format for subfont files is: a bitmap containing character images, followed by a subfont header, followed by character infor-
mation. The bitmap has the format for external bitmap files described in bitmap(6). The subfont header has 3 decimal strings: n, height,
and ascent. Each number is right-justified and blank padded in 11 characters, followed by a blank. The character info consists of n+1
6-byte entries, each giving the Fontchar x (2 bytes, low order byte first), top, bottom, left, and width. The x field of the last Fontchar
is used to calculate the bitmap width of the previous character; the other fields in the last Fontchar are irrelevant.
Note that the convention of using the character with value zero (NUL) to represent characters of zero width (see bitblt(2)) means that
fonts should have, as their zeroth character, one with non-zero width.
FILES
/lib/font/bit/*
font directories
SEE ALSO
graphics(2), bitblt(2), cachechars(2), subfalloc(2)
FONT(6)