Visit Our UNIX and Linux User Community


clear works for root but not for other users


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers clear works for root but not for other users
# 1  
Old 10-09-2007
clear works for root but not for other users

when ever I issue clear command it the system says:

Code:
bash-2.03$ clear
'xterm': unknown terminal type.

but if I clear as root, it works fine.

Also,
Code:
bash-2.03$ cd /usr/share/lib/terminfo
bash-2.03$ ls
1  2  3  4  5  6  7  8  9  A  B  G  H  M  P  S  a  b  c  d  e  f  g  h  i  j  k
bash-2.03$ cd x/
bash-2.03$ ls
x1700     x1720     x1750     x820      xitex     xl83      xpcterm   xpcterms
bash-2.03$ echo $TERMINFO

Please help.


Thank you
# 2  
Old 10-09-2007
what output do you get when you run 'echo $TERM' as a user then run it as root?
# 3  
Old 10-09-2007
output

bash-2.03$ echo $TERM
xterm


# echo $TERM
xterm

Last edited by rakeshou; 10-09-2007 at 04:20 PM..
# 4  
Old 10-09-2007
What happens when you do a "tput clear"?
# 5  
Old 10-10-2007
bash-2.03$ tput clear
unknown terminal "xterm"
# 6  
Old 10-10-2007
Try setting term by set TERM=ansi and clear
# 7  
Old 10-10-2007
bash-2.03$ export TERM=ansi
bash-2.03$ clear
'ansi': unknown terminal type.
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #430
Difficulty: Medium
Variables in JavaScript can be defined using either the var, let, static or const keywords.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SSh works but sftp doesn't for all users except root

I am sorry if i post in wrong Form. i have AIX server in which ssh works for all users but sftp only works for root user . it is too much important for me to solve this . Your help will be greatly appreciated. (1 Reply)
Discussion started by: khalid khanAIB
1 Replies

2. AIX

Root password changed but old one still works

Hello i am running AIX 6.1. i recently changed the root password using passwd and pwdadm. while the new password works fine, i am still able to login using the old password. is there anyway this can disabled\fixed thanks (5 Replies)
Discussion started by: dnlsingh
5 Replies

3. Shell Programming and Scripting

Find users with root UID or GID or root home

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

4. Solaris

How to restrict rm -rf * to users other than root?

I'm using Solaris 10. I want to restrict users from executing this dangerous command. rm -rf * But they should be able to perform the below actions: rm -rf *.* rm -rf filename rm -rf directory Is it possible? If yes then pls let me know how to do it? (7 Replies)
Discussion started by: Arun_Linux
7 Replies

5. UNIX for Dummies Questions & Answers

how to clear data on / (root)

hello, /dev/dsk/c0t0d0s0 mounted on / it shows 95% full what steps i need to follow in order to clear data??? what files i need to clear??? thanks in advance (2 Replies)
Discussion started by: mtunganati
2 Replies

6. UNIX Desktop Questions & Answers

Too many users with root password

Hi there, I'm working with a Linux server and now I can get a daily Logwatch mail ... my question is:since there are too many users with root password (...in my opinion... :mad:) how could I prevent to delete information about "su" log? Thanks in advance, GB (3 Replies)
Discussion started by: Giordano Bruno
3 Replies

7. UNIX for Advanced & Expert Users

sftp only works for root

Hi all, I have an aix 5.3 running open ssh 1.75 i think only root can sftp into the server. I appears to authenticate OK via the verbose output. Here it is: ################################################ ################################################ ... (3 Replies)
Discussion started by: dfezz1
3 Replies

8. Solaris

locking a users file as root

hello, I have a challenge to find a way to lock down a file in a user's home directory, such that a user can NOT modify, rename, move, delete, etc. The solution needs to be deployable without, for example, having to switch from unix to windows, etc We are using NFS. We want to lock the... (1 Reply)
Discussion started by: jvmagic
1 Replies

9. UNIX for Dummies Questions & Answers

tracking root users

Hi everyone hope you can help me i have 5 root users and the problem with that is how can you see witch root user did what on the box how can you track the users that played on the servers. 1) What commands they typed (in linux you get history ) 2) From witch ip did they connect to the server (3 Replies)
Discussion started by: sucram
3 Replies

10. Solaris

Root ENV is different from users', how to change?

Hello, I'm working on a Solaris 9 machine. I found the root's environment variables (say, $PATH, $ORACLE_HOME, big problem) were set differently from the users'. All regular users use C shell now and share the same environment file stored in /usr/local/config/cshrc.default. Should I just use... (4 Replies)
Discussion started by: alanlh
4 Replies

Featured Tech Videos