アプリ版:「スタンプのみでお礼する」機能のリリースについて

redhat9を使用しています。以下URLから
http://www.columbia.edu/kermit/ck80binaries.html
以下バイナリを取得しました
cku211.linux-i386-rh9

ku211.linux-i386-rh9 実行後以下のにエラーになります
?SET SPEED has no effect without prior SET LINE
C-Kermit 8.0.211, 10 Apr 2004, for Linux
Copyright (C) 1985, 2004,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/etc/) C-Kermit>set line /dev/ttyS0
Sorry, write access to UUCP lockfile directory denied.
*************************
HINT (Use SET HINTS OFF to suppress future hints):
Please read the installation instructions file, ckuins.txt,
or the UNIX appendix of the manual, "Using C-Kermit"
or visit http://www.columbia.edu/kermit/ckuins.html
*************************

以下のようにロックファイルを確認しました。
strings ./cku211.linux-i386-rh9 |grep locks
/etc/locks/LCK..
blocksize
Blocksize: %s
そこで想定されるディレクトリのパーミッションの
確認を行ないました
[root@localhost etc]# ls -l |grep locks
drwxrwxrwx 2 root root 4096 8月 31 19:02 locks

何処に問題あるのでしょうか?

A 回答 (2件)

No.1です。



補足です。
一般ユーザでも下記のようにすればエラーになりません。

○rootで/dev/ttyS0のotherにリード権とライト権を付与して実行
-------8<-------8<-------8<-------8<-------8<-------8<-------
$ ls -l /dev/ttyS0
crw-rw-rw- 1 root uucp 4, 64 9月 1 15:59 /dev/ttyS0
→一般ユーザにアクセス権あり
 ただし、uucpグループのユーザにはアクセス権あり

$ ./cku211.linux-i386-rh9
C-Kermit 8.0.211, 10 Apr 2004, for Linux
Copyright (C) 1985, 2004,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/tmp/) C-Kermit>set line /dev/ttyS0
(/tmp/) C-Kermit>
→エラーなし

-------8<-------8<-------8<-------8<-------8<-------8<-------


○実行するユーザの補助グループにuucpを追加して実行
-------8<-------8<-------8<-------8<-------8<-------8<-------
$ id
uid=500(lean) gid=500(lean) 所属グループ=500(lean),14(uucp)
→補助グループにuucpを追加

$ ls -l /dev/ttyS0
crw-rw---- 1 root uucp 4, 64 9月 1 15:59 /dev/ttyS0
→一般ユーザにアクセス権なし

$ ./cku211.linux-i386-rh9
C-Kermit 8.0.211, 10 Apr 2004, for Linux
Copyright (C) 1985, 2004,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/tmp/) C-Kermit>set line /dev/ttyS0
(/tmp/) C-Kermit>
→エラーなし

-------8<-------8<-------8<-------8<-------8<-------8<-------
    • good
    • 0
この回答へのお礼

アドバイスありがとうございます。
ユーザIDはuucpグループに所属
させていたので/dev/tty?の
パーミッションは気にしてませんでした。

しかし、redhat9のツールで
uucpグループに参加させていたので、
操作後ログオフしてログオンすべきでした。

ログオフしてログオンしたらエラーがなくなりなりました

お礼日時:2006/09/02 09:15

cku211.linux-i386-rh9を実行した際は、一般ユーザで実行したのでしょうか?


もしそうなら/dev/ttyS0に対するアクセス権がないからではないでしょうか?

以下、Red Hat Linux 9での実行例
-------8<-------8<-------8<-------8<-------8<-------

○/etc/locksディレクトリは存在しない
$ ls -l /etc/locks
ls: /etc/locks: そのようなファイルやディレクトリはありません


○/dev/ttyS0のパーミッション確認
 →一般ユーザにはアクセス権はない
$ ls -l /dev/ttyS0
crw-rw---- 1 root uucp 4, 64 9月 1 05:48 /dev/ttyS0

○一般ユーザでの実行
$ id
uid=500(lean) gid=500(lean) ~
$ ./cku211.linux-i386-rh9
C-Kermit 8.0.211, 10 Apr 2004, for Linux
Copyright (C) 1985, 2004,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/tmp/) C-Kermit>set line /dev/ttyS0
Sorry, write access to UUCP lockfile directory denied.

*************************
HINT (Use SET HINTS OFF to suppress future hints):
Please read the installation instructions file, ckuins.txt,
or the UNIX appendix of the manual, "Using C-Kermit"
or visit http://www.columbia.edu/kermit/ckuins.html
*************************

→質問にあるエラーと同じエラーになる

○スーパーユーザ(root)での実行
# id
uid=0(root) gid=0(root) ~
# ./cku211.linux-i386-rh9
C-Kermit 8.0.211, 10 Apr 2004, for Linux
Copyright (C) 1985, 2004,
Trustees of Columbia University in the City of New York.
Type ? or HELP for help.
(/tmp/) C-Kermit>set line /dev/ttyS0
(/tmp/) C-Kermit>

→エラーにはならない
-------8<-------8<-------8<-------8<-------8<-------
    • good
    • 0
この回答へのお礼

アドバイスありがとうございます。
ユーザIDはuucpグループに所属
させていたので/dev/tty?の
パーミッションは気にしてませんでした。

しかし、redhat9のツールで
uucpグループに参加させていたので、
操作後ログオフしてログオンすべきでした。

ログオフしてログオンしたらエラーがなくなりなりました

お礼日時:2006/09/02 09:16

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!