change ttyAS0 permissions

Odpovědět
ch@os_73
Registrovaný
Registrovaný
Příspěvky: 16
Registrován: 02.květen 2013 - 13:02

change ttyAS0 permissions

Příspěvek od ch@os_73 »

hello ,

Is it possible to change permanently , the /dev/ttyAS0 permissions from 620 to 660 ? if so how to di it ??

Regards
vaskee
Pokročilý
Pokročilý
Příspěvky: 143
Registrován: 13.září 2013 - 16:26

Re: change ttyAS0 permissions

Příspěvek od vaskee »

have you tried remounting it?

e.g.

Kód: Vybrat vše

mount -o "uid=1000,gid=1000,umask=117" /dev/ttyAS0 /mnt/trace
Skytec Nerine + openATV
ch@os_73
Registrovaný
Registrovaný
Příspěvky: 16
Registrován: 02.květen 2013 - 13:02

Re: change ttyAS0 permissions

Příspěvek od ch@os_73 »

thanks for replay ,

unfortunatly not ; here is th output

Kód: Vybrat vše

 mount: mounting /dev/ttyAS0 on /mnt/serial failed: Block device required
I've read in an other forum ,same subject :
As far as i know you cant mount this tty things you could connect via minicom or any other software which works on this serial line.
But it isnt a device its only a conenction,
I think it's exactly same case .

Regards
vaskee
Pokročilý
Pokročilý
Příspěvky: 143
Registrován: 13.září 2013 - 16:26

Re: change ttyAS0 permissions

Příspěvek od vaskee »

can you explain a little bit it's background? what do you need it for?
Skytec Nerine + openATV
ch@os_73
Registrovaný
Registrovaný
Příspěvky: 16
Registrován: 02.květen 2013 - 13:02

Re: change ttyAS0 permissions

Příspěvek od ch@os_73 »

yeh of course , it's for using OScam with serial prtotcol on E2 platino ,
the same binary and config work well on other E2 sh4 , but not on Platino .
when i make ls -l /dev/ttyAS0 i can see crw--w---- ; same command in other image give crw-rw---- as you can see the group can read from the device also , it makes me think that's whay OScam doesn't work because of can't read from the device and then can't get response for ECM request ..!!! hope you can anderstand me . :poklona:

you can look here : http://www.ab-forum.info/viewtopic.php?p=558062#p558062

Regards
vaskee
Pokročilý
Pokročilý
Příspěvky: 143
Registrován: 13.září 2013 - 16:26

Re: change ttyAS0 permissions

Příspěvek od vaskee »

I don't have an access to settop box at the moment.
who is the owner:group of /dev/ttyAS0 ?

what about setting up an udev rule?

Kód: Vybrat vše

KERNEL=="ttyAS0", NAME="%k", GROUP="uucp", MODE="660"
it may also be vital for a user that is connecting to this line to be part of the ttyAS0 group, if he already hasn't.
Skytec Nerine + openATV
ch@os_73
Registrovaný
Registrovaný
Příspěvky: 16
Registrován: 02.květen 2013 - 13:02

Re: change ttyAS0 permissions

Příspěvek od ch@os_73 »

sorry it's my fault for not mentioning the whole output ; the box is in original SW now , but the output of the command look like : crw--w---- 1 root root ........ /dev/ttyAS0.
i guess the owner is root and the group is root also

concerning the udev rule , where can i set this line , because there is no udev.rules file .


Regards
vaskee
Pokročilý
Pokročilý
Příspěvky: 143
Registrován: 13.září 2013 - 16:26

Re: change ttyAS0 permissions

Příspěvek od vaskee »

correct, root:root is owner:group.

I will have a look once I am by the receiver, but looking on my RHEL now, this is located here:

[root@frawbp01 rules.d]# pwd
/etc/udev/rules.d
[root@frawbp01 rules.d]# ls
05-udev-early.rules 50-udev.rules 60-libsane.rules 60-pcmcia.rules 60-wacom.rules 61-uinput-wacom.rules 90-alsa.rules 90-hal.rules 98-kexec.rules bluetooth.rules
40-multipath.rules 51-hotplug.rules 60-net.rules 60-raw.rules 61-uinput-stddev.rules 85-pcscd_ccid.rules 90-dm.rules 95-pam-console.rules 99-vmware-scsi-udev.rules

you can create your own file or better adjust/add rules into something like *permissions.rules or udev.rules. first check the file if there already aren't any other rules for console devices.

try finding your rules/configuration directory with

Kód: Vybrat vše

find / -name *udev*
if you have luck and do your configuration, don't forget to restart udev to take effect.
Skytec Nerine + openATV
ch@os_73
Registrovaný
Registrovaný
Příspěvky: 16
Registrován: 02.květen 2013 - 13:02

Re: change ttyAS0 permissions

Příspěvek od ch@os_73 »

image installed again , there is no rules file

Kód: Vybrat vše

 9105+:~# find / -name *rules                 
find: /autofs/sda1: No such file or directory

Kód: Vybrat vše

 9105+:~# find / -name *permissions           
find: /autofs/sda1: No such file or directory
only MAKEDEV exist in /sbin/ .
MAKEDEV.rar
Regards
Nemáte oprávnění prohlížet přiložené soubory.
vaskee
Pokročilý
Pokročilý
Příspěvky: 143
Registrován: 13.září 2013 - 16:26

Re: change ttyAS0 permissions

Příspěvek od vaskee »

you either did a wrong search or using wrong distro : )

Kód: Vybrat vše

hs7919:/lib/udev/rules.d# pwd
/lib/udev/rules.d
hs7919:/lib/udev/rules.d# ls
50-udev-default.rules              60-persistent-storage-tape.rules   70-hid2hci.rules                   78-sound-card.rules
60-cdrom_id.rules                  60-persistent-storage.rules        75-cd-aliases-generator.rules      79-fstab_import.rules
60-floppy.rules                    60-persistent-v4l.rules            75-net-description.rules           80-drivers.rules
60-persistent-alsa.rules           61-mobile-action.rules             75-persistent-net-generator.rules  95-keyboard-force-release.rules
60-persistent-input.rules          61-persistent-storage-edd.rules    75-probe_mtd.rules                 95-keymap.rules
60-persistent-serial.rules         70-acl.rules                       75-tty-description.rules           95-udev-late.rules
hs7919:/lib/udev/rules.d#
I would play with 0-udev-default.rules. I might try that if I find some time during weekend.

Kód: Vybrat vše

hs7919:/lib/udev/rules.d# grep tty *
50-udev-default.rules:KERNEL=="pty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0660"
50-udev-default.rules:KERNEL=="tty[pqrstuvwxyzabcdef][0123456789abcdef]", GROUP="tty", MODE="0660"
50-udev-default.rules:KERNEL=="ptmx",                   GROUP="tty", MODE="0666"
50-udev-default.rules:KERNEL=="tty",                    GROUP="tty", MODE="0666"
50-udev-default.rules:KERNEL=="tty[0-9]*",              GROUP="tty", MODE="0620"
50-udev-default.rules:KERNEL=="vcs|vcs[0-9]*|vcsa|vcsa[0-9]*", GROUP="tty"
50-udev-default.rules:KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*", GROUP="dialout"
50-udev-default.rules:#KERNEL=="ttyAS0",               GROUP="dialout", MODE="0660"
60-persistent-serial.rules:SUBSYSTEM!="tty", GOTO="persistent_serial_end"
60-persistent-serial.rules:KERNEL!="ttyUSB[0-9]*|ttyACM[0-9]*", GOTO="persistent_serial_end"
75-tty-description.rules:ACTION=="remove", GOTO="tty_end"
75-tty-description.rules:SUBSYSTEM!="tty", GOTO="tty_end"
75-tty-description.rules:SUBSYSTEMS=="usb", GOTO="tty_end"
75-tty-description.rules:LABEL="tty_end"
hs7919:/lib/udev/rules.d#
Skytec Nerine + openATV
ch@os_73
Registrovaný
Registrovaný
Příspěvky: 16
Registrován: 02.květen 2013 - 13:02

Re: change ttyAS0 permissions

Příspěvek od ch@os_73 »

the Box is hs7819 , E2 HDBOX PLATINO
9105+:~# uname -a
Linux 9105+ 2.6.32.28_stm24_0207 #2 PREEMPT Sat Feb 9 17:44:57 CET 2013 sh4 GNU
Linux
9105+:~# cat /proc/cpuinfo
machine : sat7111
processor : 0
cpu family : sh4
cpu type : STx7111
cut : 3.x
cpu flags : fpu icbi synco fpchg
cache type : split (harvard)
icache size : 32KiB (2-way)
dcache size : 32KiB (2-way)
address sizes : 32 bits physical
bogomips : 448.51
9105+:~#
I don't think is due to wrong search ; sorry for my question but what do mean by "distro" if you mean the system i used , it's DCC on windows 7 , but be sure same result with debian wheezy .

Edit
here is the output :

Kód: Vybrat vše

 9105+ login: root


BusyBox v1.20.1 (2012-06-21 23:20:07 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

9105+:~# find / -name rules*
find: /autofs/sda1: No such file or directory
9105+:~# find / -name *rules*
find: /autofs/sda1: No such file or directory
9105+:~# 

Kód: Vybrat vše

 9105+:/lib/udev# ls
devices
9105+:/lib/udev# cd devices
9105+:/lib/udev/devices# ls
MAKEDEV
9105+:/lib/udev/devices# 
Regards
vaskee
Pokročilý
Pokročilý
Příspěvky: 143
Registrován: 13.září 2013 - 16:26

Re: change ttyAS0 permissions

Příspěvek od vaskee »

I was a little bit sarcastic, and I am sorry about that, but by distro I in fact ment linux distribution, which is in my case E2 HD Ready. unfortunately I can't help with Platino as I am using Skytec box, where Platino can't be loaded onto.

strange thing is, that platino is, if I am not mistaken, still enigma2, where udev rules definitely are.

when we were talking yesterday midday, I was using redhat 5.2 tikanga.
Skytec Nerine + openATV
ch@os_73
Registrovaný
Registrovaný
Příspěvky: 16
Registrován: 02.květen 2013 - 13:02

Re: change ttyAS0 permissions

Příspěvek od ch@os_73 »

hello

not need to be sorry .
I can see in this topic that is an hdready Enigma for 7819 , i'll tray to install it ; if there is same probleme i'll tray instructions given above . may be that solve my case . We'll see .

thanks for your time

Regards
vaskee
Pokročilý
Pokročilý
Příspěvky: 143
Registrován: 13.září 2013 - 16:26

Re: change ttyAS0 permissions

Příspěvek od vaskee »

yeah, defintely is. let us know if you succeeded. ;-)
Skytec Nerine + openATV
ch@os_73
Registrovaný
Registrovaný
Příspěvky: 16
Registrován: 02.květen 2013 - 13:02

Re: change ttyAS0 permissions

Příspěvek od ch@os_73 »

hello ;

No need to change anything :unknown: , just HDReady installed and OScam works well !!!!

thanks once again

Regards
Odpovědět

Zpět na „HD-BOX Enigma2 v internal flash“