LinuxForum.Fans
Тема

MobilePartner в Mageia2

Автор: kram78 38 сообщений 13586 просмотров
#271355

Установил MobilePartner мегафон е 1550 выдаёт ,что устройство отключено или недоступно
$ ls /dev/ttyUSB*
/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2
HELP!!!!!

#271356

kram78, по моему глубоко личному мнению MobilePartner — зло ;)
...но тем не менее покажите

text

ls -l /dev/ttyUSB*
text

cat /etc/sudoers

Обязательно от обычного пользователя:

text

groups

P.S. После установки перезагружались?

#271360
"Lupo Alberto" написал:
P.S. После установки перезагружались?

Да перезагружался.

Показать
[kramarenko@localhost ~]$ ls -l /dev/ttyUSB*
ls: невозможно получить доступ к /dev/ttyUSB*: Нет такого файла или каталога
[kramarenko@localhost ~]$ cat /etc/sudoers
cat: /etc/sudoers: Отказано в доступе
[kramarenko@localhost ~]$ groups
kramarenko

#271361
"kram78" написал:
ls: невозможно получить доступ к /dev/ttyUSB*: Нет такого файла или каталога

Нужно вставить модем и подождать секунд 20÷30, затем ввести команду.

"kram78" написал:
cat: /etc/sudoers: Отказано в доступе

От root'а попробуйте, это не опасно в данном случае.

#271363

Извиняюсь вот вывод команд

Показать
[kramarenko@localhost ~]$ ls -l /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 авг. 22 22:25 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 авг. 22 22:25 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 авг. 22 22:25 /dev/ttyUSB2
[kramarenko@localhost ~]$ cat /etc/sudoers
cat: /etc/sudoers: Отказано в доступе
[kramarenko@localhost ~]$ groups
kramarenko

#271364

Команды от рута

Показать
[root@localhost kramarenko]# ls -l /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 авг. 22 22:25 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 авг. 22 22:25 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 авг. 22 22:25 /dev/ttyUSB2
[root@localhost kramarenko]# cat /etc/sudoers
## Sudoers allows particular users to run various commands as
## the root user, without needing the root password.
##
## Examples are provided at the bottom of the file for collections
## of related commands, which can then be delegated out to particular
## users or groups.
##
## This file must be edited with the 'visudo' command.

## Host Aliases
## Groups of machines. You may prefer to use hostnames (perhaps using
## wildcards for entire domains) or IP addresses instead.
# Host_Alias FILESERVERS = fs1, fs2
# Host_Alias MAILSERVERS = smtp, smtp2

## User Aliases
## These aren't often necessary, as you can use regular groups
## (ie, from files, LDAP, NIS, etc) in this file - just use %groupname
## rather than USERALIAS
# User_Alias ADMINS = jsmith, mikem


## Command Aliases
## These are groups of related commands...

## Networking
# Cmnd_Alias NETWORKING = /sbin/route, /sbin/ifconfig, /bin/ping, /sbin/dhclient, /usr/bin/net, /sbin/iptables, /usr/bin/rfcomm, /usr/bin/wvdial, /sbin/iwconfig, /sbin/mii-tool

## Installation and management of software
# Cmnd_Alias SOFTWARE = /bin/rpm, /usr/bin/up2date, /usr/bin/yum

## Services
# Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig

## Updating the locate database
# Cmnd_Alias LOCATE = /usr/bin/updatedb

## Storage
# Cmnd_Alias STORAGE = /sbin/fdisk, /sbin/sfdisk, /sbin/parted, /sbin/partprobe, /bin/mount, /bin/umount

## Delegating permissions
# Cmnd_Alias DELEGATING = /usr/sbin/visudo, /bin/chown, /bin/chmod, /bin/chgrp

## Processes
# Cmnd_Alias PROCESSES = /bin/nice, /bin/kill, /usr/bin/kill, /usr/bin/killall

## Drivers
# Cmnd_Alias DRIVERS = /sbin/modprobe

# Defaults specification

#
# Disable "ssh hostname sudo <cmd>", because it will show the password in clear.
# You have to run "ssh -t hostname sudo <cmd>".
#
# ,Defaults requiretty,delete requiretty for hw_mobile

Defaults env_reset
Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR LS_COLORS"
Defaults env_keep += "MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE"
Defaults env_keep += "LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES"
Defaults env_keep += "LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE"
Defaults env_keep += "LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY"

Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin

## Next comes the main part: which users can run what software on
## which machines (the sudoers file can be shared between multiple
## systems).
## Syntax:
##
## user MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL

## Allows members of the 'sys' group to run networking, software,
## service management apps and more.
# %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS

## Allows people in group wheel to run all commands
# %wheel ALL=(ALL) ALL

## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL

## Allows members of the users group to mount and unmount the
## cdrom as root
# %users ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom

## Allows members of the users group to shutdown this system
# %users localhost=/sbin/shutdown -h now

## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
#includedir /etc/sudoers.d
ALL ALL=(ALL) NOPASSWD:/usr/local/MegaFon_Internet/MobilePartner.sh
[root@localhost kramarenko]# groups
root

#271367
"kram78" написал:
ALL ALL=(ALL) NOPASSWD:/usr/local/MegaFon_Internet/MobilePartner.sh

Вот за эту строчку я и считаю MobilePartner злом.
Ищите в меню пункт с «мобильным злом» — должно запускаться и подключаться.

Если есть желание сделать всё «по уму», сносите «партнёра», добавляйте пользователя в группу dialout и подключайтесь средствами системы (kppp, wvdial и т.п.)

#271370

[не в тему]
Вау! Мегафоновцы переделали свой костыль. А проверить членство пользователя в группе dialout и дать членам этой группы права на запуск МобильногоНепартнера они, похоже, не смогли. Или здесь это не поможет?
[/не в тему]
kram78, а вам не помешает [console=root]usermod -a -G dialout username[/console]
где username - имя пользователя, от которого вы работаете.
UPD: исправил опечатку.

#271372
"Lupo Alberto" написал:
Вот за эту строчку я и считаю MobilePartner злом.

Но ведь на магии 1 работало всё отлично!!!

#271373
"kram78" написал:
Но ведь на магии 1 работало всё отлично!!!

Я и не говорил, что это не работает. Но какой ценой?..

#271375
"yars" написал:
kram78, а вам не помешает
Консоль
[root@linuxforum.ru ~]# useradd -a -G dialout username

вот вывод

Показать
[root@localhost kramarenko]# useradd -a -G dialout kramarenko
useradd: неверный ключ -- «a»
Usage: useradd [options] LOGIN

Options:
-b, --base-dir BASE_DIR base directory for the home directory of the
new account
-c, --comment COMMENT GECOS field of the new account
-d, --home-dir HOME_DIR home directory of the new account
-D, --defaults print or change default useradd configuration
-e, --expiredate EXPIRE_DATE expiration date of the new account
-f, --inactive INACTIVE password inactivity period of the new account
-g, --gid GROUP name or ID of the primary group of the new
account
-G, --groups GROUPS list of supplementary groups of the new
account
-h, --help display this help message and exit
-k, --skel SKEL_DIR use this alternative skeleton directory
-K, --key KEY=VALUE override /etc/login.defs defaults
-l, --no-log-init do not add the user to the lastlog and
faillog databases
-m, --create-home create the user's home directory
-M, --no-create-home do not create the user's home directory
-N, --no-user-group do not create a group with the same name as
the user
-o, --non-unique allow to create users with duplicate
(non-unique) UID
-p, --password PASSWORD encrypted password of the new account
-r, --system create a system account
-s, --shell SHELL login shell of the new account
-u, --uid UID user ID of the new account
-U, --user-group create a group with the same name as the user

#271376

Ой, прошу прощения, надо было не useradd, а usermod:
[console=root]usermod -a -G dialout kramarenko[/console]
Эта команда может вас избавить и от некоторых других вопросов, связанных с, например, отсутствием звука и видеоускорения. В Slackware, например, есть группы audio и video, в них нужно добавить пользователя, если нужны звук и видеоускорение.

#271379

ДА!!! По прежнему запускаться не хочет!!!

#271386

После выполнения этой команды нужно выйти из системы и войти вновь. сделайте это и покажите [console]groups[/console]

#271565

$ groups
kramarenko dialout

#272373

Как не бился ,но оболочка MobilePartner мегафон не видит модем! Может ещё есть у кого мысли по этому поводу? Помогите!!!!

#272381

Через kppp подключайся.

#272392

GNOM через KPPP модем подключается в лёгкую.Но MobilePartner прикручиваю из-за того чтобы отслеживать баланс. MobilePartner мне в камандировке удобней!

#272394

При установленном мобайл партнер, интерфейсы не ttyUSB0-2. Попробуй удали usb_modeswitch.

#272427

Удалил usb_modeswitch но всё равно устройство отключено или недоступно!

Войдите или зарегистрируйтесь, чтобы ответить.