Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
finottiOffline
Post subject: [SOLVED] "emacs -nw" as root  PostPosted: 04.08.2012, 21:18



Joined: 2010-09-12
Posts: 312

Status: Offline
Dear all,

If I try to use emacs in a terminal (now window) with "emacs -nw", I get the following error:

      Code:

root@debian[/home/finotti]# emacs -nw .bashrc
emacs: Could not open file: /dev/tty


I can open a new window (not using the option "-nw") and other editors, such as nano, work.

Does anyone have any idea on what is going on. It used to work in the past.

Here is some info:

      Code:

root@debian[/home/finotti]# infobash -v3
Host/Kernel/OS  "debian" running Linux 3.5-0.slh.1-aptosid-amd64 x86_64 [ aptosid 2010-02 Κῆρες - kde-full - (201009132215) ]
CPU Info        2x Intel Core2 Duo E8400 @ 6144 KB cache flags( sse3 ht nx lm vmx ) clocked at [ 2999.852 MHz ]
Videocard       NVIDIA G86 [GeForce 8500 GT]  X.Org 1.12.3  [ 1280x1024@60.0hz ]
Network cards   NVIDIA MCP55
                NVIDIA MCP55
                NETGEAR WNA WNA1100
Processes 192 | Uptime 11days | Memory 2647.4/7991.2MB | HDD WDC WD1500ADFD-0,ST31000528AS,WDC WD1001FALS-0,WDC WD10EALS-00Z Size 3150GB (48%used) | GLX Renderer Gallium 0.4 on NV86 | GLX Version Yes | Client Shell | Infobash v3.45


Thanks,

Luis

Edit: I should mention that it works as a regular user (running KDE). In a virtual terminal, root can open files normally.


Last edited by finotti on 06.08.2012, 21:53; edited 2 times in total
 
 View user's profile Send private message  
Reply with quote Back to top
seagullOffline
Post subject:   PostPosted: 06.08.2012, 12:50



Joined: 2010-09-11
Posts: 42

Status: Offline
      Code:
ls -al `which emacs`
# gives:
-rwxr-xr-t 2 root staff 21262819 Jun 23 18:40 /usr/local/bin/emacs

with my self compiled emacs 24.
 
 View user's profile Send private message  
Reply with quote Back to top
finottiOffline
Post subject:   PostPosted: 06.08.2012, 17:31



Joined: 2010-09-12
Posts: 312

Status: Offline
I'm sorry if I'm being obtuse, but how does this relate to the problem?
 
 View user's profile Send private message  
Reply with quote Back to top
finottiOffline
Post subject:   PostPosted: 06.08.2012, 17:41



Joined: 2010-09-12
Posts: 312

Status: Offline
I just noticed that using "su" instead of "sux" works... Is "sux" deprecated?
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject:   PostPosted: 06.08.2012, 18:43



Joined: 2010-08-25
Posts: 736

Status: Offline
sux has been broken by a 'login' security update, given that bugs against this have been reported for quite some time, I wouldn't be too optimistic that it will get fixed.


Last edited by slh on 06.08.2012, 22:12; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
finottiOffline
Post subject:   PostPosted: 06.08.2012, 21:54



Joined: 2010-09-12
Posts: 312

Status: Offline
OK, I've marked this as solved. Although there is still a problem with sux, emacs works on a terminal now with su.

Thanks all,

Luis
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio