Root problems??


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Root problems??
# 1  
Old 07-11-2008
Root problems??

So when I log in as root on my eMac (running tiger, 10.4.11), some things don't work or reluctantly work. Examples:

Computer:/Users/mat/Desktop root# pico test.doc
Error opening terminal: network.

Computer:/Users/mat/Desktop root# emacs test.doc
Error opening terminal: network.

Computer:/Users/mat/Desktop root# vi test.doc
E558: Terminal entry not found in terminfo
'network' not known. Available builtin terminals are:
builtin_ansi
builtin_xterm
builtin_iris-ansi
builtin_dumb
defaulting to 'ansi'

also,

Computer:~ root# man who
WARNING: terminal is not fully functional
- (press RETURN)

Then the man seems to work fine, but I have never gotten a message like this before when logged in as a regular user.

While logged in as a regular user, i can sudo pico (or nano, emacs, or vi) files fine, but I can't pico files while logged in as root.
Is it something that I screwed up?
Can I fix any of these problems?
# 2  
Old 07-12-2008
Im not sure to be of much (know nothing about mac...) help here...
since I have no idea how your sudo is configured...But lets try to understand:
You - as user can execute what you want and works fine? all your env is correctly set then but as you "sudo" root some variable are not set anymore or not in the same way...
1) what are the difference in your profile and root's profile?
you may have to export TERM again...
# 3  
Old 07-13-2008
Clarification

Ok

-Logged in as me (my user), i can do what i want and it all works fine (with permissions)

-Logged in as me (my user), all editing programs work fine (vi, emacs, pico,etc)

-Logged in as me (my user), the sudo works fine-i can sudo a command and it will work fine

However:

-Logged in AS ROOT, pico, nano, and emacs don't work :
Error opening terminal: network.

-Logged in AS ROOT, vi works after displaying this message:
E558: Terminal entry not found in terminfo
'network' not known. Available builtin terminals are:
builtin_ansi
builtin_xterm
builtin_iris-ansi
builtin_dumb
defaulting to 'ansi'

-Logged in AS ROOT, man works after displaying this message:
Computer:~ root# man who
WARNING: terminal is not fully functional
- (press RETURN)

Hopefully this is clearer.
# 4  
Old 07-14-2008
Althoug you can try to set TERM=xterm and see if it works,

I would suggest you as user type env :
env >>my_env.txt
check how your terminal is set:
echo $TERM
echo $DISPLAY

Then compare with root's...
If you have TERM unset for root, set the variable with the value you found for yourself
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Debian

Problems with cryptsetup keyfile encrypted root partition under Debian 9, i386

Hello, i'm trying to set up a machine with an encrypted filesystem. It's a Debian 9/i386. The partition table on /dev/sda 1. 1 MiB BIOS BOOT (04) N/A N/A 2. 256 MiB Linux (83) ext4 /boot 3. 2304 MiB Linux (83) ext4 / 4. 1 MiB MINIX (81) N/A N/A 5. 510 MiB Linux... (7 Replies)
Discussion started by: tyuxar
7 Replies

2. Solaris

Migration of system having UFS root FS with zones root to ZFS root FS

Hi All After downloading ZFS documentation from oracle site, I am able to successfully migrate UFS root FS without zones to ZFS root FS. But in case of UFS root file system with zones , I am successfully able to migrate global zone to zfs root file system but zone are still in UFS root file... (2 Replies)
Discussion started by: sb200
2 Replies

3. AIX

AIX Disable direct root login problems

I have disabled rlogin for root successfully , but after that i could not login to root from console and could not su to root from other users as it responded as expired account I did not have any admin user but I have managed to recover the situation by accessing rootvg before mounting it, but... (5 Replies)
Discussion started by: majd_ece
5 Replies

4. UNIX for Dummies Questions & Answers

MTA problems; root gets no mail

Hello, I am afraid that I goofed up my mailing system. I have an Ubuntu 9.10 system $ uname -smor Linux 2.6.31-14-generic x86_64 GNU/Linux I am wanting to receive cron job mails. I noticed that cron jobs were trying to send mail to sendmail. I had installed ssmtp so I could send mail... (1 Reply)
Discussion started by: Narnie
1 Replies

5. UNIX for Dummies Questions & Answers

How to allow access to some commands having root privleges to be run bu non root user

hi i am new to unix and i have abig task. i have to \run particular commands having root privileges from a non root user. i know sudo is one of the way but i need sum other approach kindly help Thanks (5 Replies)
Discussion started by: suryashikha
5 Replies

6. UNIX for Dummies Questions & Answers

Non root login problems in AIX

Hi All, I have setup a non root user on AIX 5.3, using smit. When I try logging on as that user my login screen just disappears. I am using PUTTY. I login to the same box as root no problems. I have tried re-creating several different usernames but get the same effect I have also telneted from a... (2 Replies)
Discussion started by: hansul
2 Replies

7. Shell Programming and Scripting

ssh root@mrp-gateway problems

Dear friends, exec 0<$SuppFile while read LINE do echo $LINE gatewayArchive=`ssh root@mrp-gateway "cd /usr/local/apache/data/PLAT/MIMUS/upload/PROD/archive && ls $LINE"` echo "gateway files :"$gatewayArchive done this loop is not repeating when i use ssh root@mrp-gateway line of code.... (1 Reply)
Discussion started by: kittusri9
1 Replies

8. AIX

Can't login root account due to can't find root shell

Hi, yesterday, I changed root's shell in /etc/passwd, cause a mistake then I can not log in root account (can't find correct shell). I attempted to log in single-mode, however, it prompted for single-mode's password then I type root's password but still can not log in. I'm using AIX 5L version 5.2... (2 Replies)
Discussion started by: neikel
2 Replies

9. AIX

Problems with disabling remote root login

Hello! I'm going through security checklist for AIX 5.3 and i just can't disable remote login for root through ssh. What i did: - in /etc/security/user i added a line: rlogin = false which works fine when i try to login through telnet - after installation of openSSH i edited... (3 Replies)
Discussion started by: veccinho
3 Replies

10. UNIX for Dummies Questions & Answers

Run non-root script as root with non-root environment

All, I want to run a non-root script as the root user with non-root environment variables with crontab. The non-root user would have environment variables for database access such as Oracle or Sybase. The root user does not have the Oracle or Sybase enviroment variables. I thought you could do... (2 Replies)
Discussion started by: bubba112557
2 Replies
Login or Register to Ask a Question