ubuntu12.04 kermit 权限配置

安装完kermit后,每次直接执行kermit都会提示“/dev/ttyUSB0: Permission denied”:
gouwa@lurk:~$ kermit
?OpenSSL libraries do not match required version:
  . C-Kermit built with OpenSSL 1.0.0e 6 Sep 2011
  . Version found  OpenSSL 1.0.1 14 Mar 2012
  OpenSSL versions prior to 1.0.0 must be the same.
  Set LD_LIBRARY_PATH for OpenSSL 1.0.0e 6 Sep 2011.
  Or rebuild C-Kermit from source on this computer to make versions agree.
  C-Kermit makefile target: linux+krb5+openssl
  Or if that is what you did then try to find out why
  the program loader (image activator) is choosing a
  different OpenSSL library than the one specified in the build.

  All SSL/TLS features disabled.

/dev/ttyUSB0: Permission denied				# 这里提示权限问题
?SET SPEED has no effect without prior SET LINE
Sorry, you must SET LINE or SET HOST first
C-Kermit 9.0.302 OPEN SOURCE:, 20 Aug 2011, for Linux+SSL+KRB5 (64-bit)
 Copyright (C) 1985, 2011,
  Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/home/gouwa/) C-Kermit>


查看串口设备文件后发现,/dev/ttyUSB0是属于root用户,dialout组:

crw-rw---- 1 root dialout 188, 0 Sep 24 10:03 /dev/ttyUSB0
gouwa@lurk:~$


因此,这里的默认用户(gouwa)是没有权限打开的。解决办法很简单,就是把你的用户
添加到组dialout就行了:

gouwa@lurk:~$ sudo usermod -a -G dialout gouwa


然后,重新logout注销一下,再重新登入就可以直接使用kermit了。

当然,也可以通过如下方式修改设备文件的UID:

gouwa@lurk:~$ sudo chown gouwa /dev/ttyUSB0


这样修改的弊端就是,每次开机都要手动设置一遍,而且,插拔串口后也要重新设置。

附,kermrc配置文件:

gouwa@lurk:~$ cat .kermrc 
set line /dev/ttyUSB0
set speed 115200
set carrier-watch off
set handshake none
set flow-control none
robust
set file type bin
set file name lit
set rec pack 1000
set send pack 1000
set window 5
c
gouwa@lurk:~$

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值