начну по порядку.1 я чайник впервые установивший redhat9. после двух дней сплошных мучений добился связи с адсл-модемом
(проверил пингом)2 запустил мазилу,но ни одна страница не открывается.проверил настройки сетевухи.все адреса и dns и шлюз,всё прописанно(под виндовс с теми же настройками всё работает)3 решил настроить связь с дримбоксом(спутниковый приёмник на базе линукс.)настроил вторую сетевуху,проверил пингом.связь есть.стало быть где-то должен увидеть файлы дрибокса.читая в сотый раз "линукс для чайников"выяснил что нужно внести некие изменения в файл exports,каталога etc и вот тут-то 4 нету прав для записи в этот файл. я ведь задал пароль при установке.при проверке выяснилось,что у меня нет прав для работы практически ни с какими файлами.я снова за книгу.ага,права можно присвоить.но не тут-то было.попробывал в bash,а мне в ответ права для такого-то файла не могут быть изменены.я в наутилус,нашёл нужный файл,правой кнопкой попытался изменить,тоже бестолку.вот такие проблемы.
права доступа и интернет
Модератор: Bizdelnick
-
makss
- Сообщения: 226
- ОС: Win+ Lin
Re: права доступа и интернет
Дааа батенька
вам бы под рутом зайти не помешало для начала что бы править права на файлы
в консоли
Только одно права у вас будут только в той консоли где выполнили su
в консоли
Код: Выделить всё
su -Только одно права у вас будут только в той консоли где выполнили su
не воспринимайте Linux c позиции Windows, учитесь использовать командную строку
-
Juliette
- Сообщения: 5058
- Статус: ROSA Lab
- ОС: Ubuntu LTS, Mandriva 2011
Re: права доступа и интернет
makss писал(а): ↑29.11.2006 22:02Дааа батенькавам бы под рутом зайти не помешало для начала что бы править права на файлы
в консолиКод: Выделить всё
su -
Только одно права у вас будут только в той консоли где выполнили su
это во-первых
во-вторых, зайдя в консоль, под рутом пожалуйста наберите команду ifconfig до и после поднятия интернета, дальше будем смотреть
-
irbe
- Сообщения: 190
- ОС: debian
Re: права доступа и интернет
вводил ifconfig.а что я там полезного должен увидеть.выскакивает какя-то информация,которую я даже не могу здесь привести,ибо что бы в инет попасть нужно перегрузиться на виндовс.а переносить файлы из линукса пока не умею.мне бы в инет через адсл.вводил в консоли adsl-setup,отвечал на предлогаемые вопросы по разному,в конфигурации сети появлялось новое соединение кторое ни как не могло активироваться.я чую что где-то что-то не так делаю,но что....?
-
Juliette
- Сообщения: 5058
- Статус: ROSA Lab
- ОС: Ubuntu LTS, Mandriva 2011
Re: права доступа и интернет
здесь живёт програмка, которая позволяет видеть линуксовые разделы из винды, я с ней уже давно горя не знаю
пара ссылочек по ADSL:
http://www.samspublishing.com/library/cont...Num=61&rl=1
http://www.linuxsolved.com/forums/ftopic176.html
пара ссылочек по ADSL:
http://www.samspublishing.com/library/cont...Num=61&rl=1
http://www.linuxsolved.com/forums/ftopic176.html
-
irbe
- Сообщения: 190
- ОС: debian
Re: права доступа и интернет
вот такие настройки для адсл(огромное спасибо за прогу.великолепно).инета с ними нет.[root@localhost root]# adsl-setup
Welcome to the ADSL client setup. First, I will run some checks on
your system to make sure the PPPoE client is installed properly...
LOGIN NAME
Enter your Login Name (default root): irbe20
INTERFACE
Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethX, where 'X' is a number.
(default eth0): eth1
Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
after which the link should be dropped. If you want the link to
stay up permanently, enter 'no' (two letters, lower-case.)
NOTE: Demand-activated links do not interact well with dynamic IP
addresses. You may have some problems with demand-activated links.
Enter the demand value (default no): no
DNS
Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide dynamic DNS addresses',
enter 'server' (all lower-case) here.
If you just press enter, I will assume you know what you are
doing and not modify your DNS setup.
Enter the DNS information here: 80.95.32.19
Please enter the IP address of your ISP's secondary DNS server.
If you just press enter, I will assume there is only one DNS server.
Enter the secondary DNS server address here: 80.95.32.20
PASSWORD
Please enter your Password:
Please re-enter your Password:
USERCTRL
Please enter 'yes' (two letters, lower-case.) if you want to allow
normal user to start or stop DSL connection (default yes): yes
FIREWALLING
Please choose the firewall rules to use. Note that these rules are
very basic. You are strongly encouraged to use a more sophisticated
firewall setup; however, these will provide basic security. If you
are running any servers on your machine, you must choose 'NONE' and
set up firewalling yourself. Otherwise, the firewall rules will deny
access to all standard servers like Web, e-mail, ftp, etc. If you
are using SSH, the rules will block outgoing SSH connections which
allocate a privileged source port.
The firewall choices are:
0 - NONE: This script will not set any firewall rules. You are responsible
for ensuring the security of your machine. You are STRONGLY
recommended to use some kind of firewall rules.
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway
for a LAN
Choose a type of firewall (0-2): 2
Start this connection at boot time
Do you want to start this connection at boot time?
Please enter no or yes (default no):yes
** Summary of what you entered **
Ethernet Interface: eth1
User name: irbe20
Activate-on-demand: No
Primary DNS: 80.95.32.19
Secondary DNS: 80.95.32.20
Firewalling: MASQUERADE
User Control: yes
Accept these settings and adjust configuration files (y/n)? y
Adjusting /etc/sysconfig/network-scripts/ifcfg-ppp0
Adjusting /etc/resolv.conf
Adjusting /etc/ppp/chap-secrets and /etc/ppp/pap-secrets
(But first backing it up to /etc/ppp/chap-secrets.bak)
(But first backing it up to /etc/ppp/pap-secrets.bak)
Congratulations, it should be all set up!
Type '/sbin/ifup ppp0' to bring up your xDSL link and '/sbin/ifdown ppp0'
to bring it down.
Type '/sbin/adsl-status /etc/sysconfig/network-scripts/ifcfg-ppp0'
to see the link status.
[root@localhost root]# adsl-start
в приклепдённых файлах конфигурации сети и то,что отвечает мазила
Welcome to the ADSL client setup. First, I will run some checks on
your system to make sure the PPPoE client is installed properly...
LOGIN NAME
Enter your Login Name (default root): irbe20
INTERFACE
Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethX, where 'X' is a number.
(default eth0): eth1
Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
after which the link should be dropped. If you want the link to
stay up permanently, enter 'no' (two letters, lower-case.)
NOTE: Demand-activated links do not interact well with dynamic IP
addresses. You may have some problems with demand-activated links.
Enter the demand value (default no): no
DNS
Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide dynamic DNS addresses',
enter 'server' (all lower-case) here.
If you just press enter, I will assume you know what you are
doing and not modify your DNS setup.
Enter the DNS information here: 80.95.32.19
Please enter the IP address of your ISP's secondary DNS server.
If you just press enter, I will assume there is only one DNS server.
Enter the secondary DNS server address here: 80.95.32.20
PASSWORD
Please enter your Password:
Please re-enter your Password:
USERCTRL
Please enter 'yes' (two letters, lower-case.) if you want to allow
normal user to start or stop DSL connection (default yes): yes
FIREWALLING
Please choose the firewall rules to use. Note that these rules are
very basic. You are strongly encouraged to use a more sophisticated
firewall setup; however, these will provide basic security. If you
are running any servers on your machine, you must choose 'NONE' and
set up firewalling yourself. Otherwise, the firewall rules will deny
access to all standard servers like Web, e-mail, ftp, etc. If you
are using SSH, the rules will block outgoing SSH connections which
allocate a privileged source port.
The firewall choices are:
0 - NONE: This script will not set any firewall rules. You are responsible
for ensuring the security of your machine. You are STRONGLY
recommended to use some kind of firewall rules.
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway
for a LAN
Choose a type of firewall (0-2): 2
Start this connection at boot time
Do you want to start this connection at boot time?
Please enter no or yes (default no):yes
** Summary of what you entered **
Ethernet Interface: eth1
User name: irbe20
Activate-on-demand: No
Primary DNS: 80.95.32.19
Secondary DNS: 80.95.32.20
Firewalling: MASQUERADE
User Control: yes
Accept these settings and adjust configuration files (y/n)? y
Adjusting /etc/sysconfig/network-scripts/ifcfg-ppp0
Adjusting /etc/resolv.conf
Adjusting /etc/ppp/chap-secrets and /etc/ppp/pap-secrets
(But first backing it up to /etc/ppp/chap-secrets.bak)
(But first backing it up to /etc/ppp/pap-secrets.bak)
Congratulations, it should be all set up!
Type '/sbin/ifup ppp0' to bring up your xDSL link and '/sbin/ifdown ppp0'
to bring it down.
Type '/sbin/adsl-status /etc/sysconfig/network-scripts/ifcfg-ppp0'
to see the link status.
[root@localhost root]# adsl-start
в приклепдённых файлах конфигурации сети и то,что отвечает мазила
-
Juliette
- Сообщения: 5058
- Статус: ROSA Lab
- ОС: Ubuntu LTS, Mandriva 2011
Re: права доступа и интернет
irbe
вам, наверное, лучше ещё раз запостить проблему в подразделе РедХатовцев-Федоровцев, с явным указанием в заглавии ADSL и с конкретным выводом ifconfig'а (запустить под рутом в любой иксовой гномовской консоли и копи-пастом сохранить в .txt)

вам, наверное, лучше ещё раз запостить проблему в подразделе РедХатовцев-Федоровцев, с явным указанием в заглавии ADSL и с конкретным выводом ifconfig'а (запустить под рутом в любой иксовой гномовской консоли и копи-пастом сохранить в .txt)
-
PEGAS@zenwalk
- Сообщения: 47
- ОС: ArchLinux
Re: права доступа и интернет
У меня вопрос такой: как позволить пользователям (не root) запускать pppoe-start, кроме как через нстройку sudo. Спасиба.
-
irbe
- Сообщения: 190
- ОС: debian
Re: права доступа и интернет
вот ifconfig до подключения к инету eth0 Link encap:Ethernet HWaddr 00:E0:4C:21:EE:03
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:240 (240.0 B)
Interrupt:5 Base address:0xb000
eth1 Link encap:Ethernet HWaddr 00:04:76:90:E0:FB
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:94 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:31200 (30.4 Kb) TX bytes:2292 (2.2 Kb)
Interrupt:11 Base address:0x9c00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:507 errors:0 dropped:0 overruns:0 frame:0
TX packets:507 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:34115 (33.3 Kb) TX bytes:34115 (33.3 Kb)
и после eth0 Link encap:Ethernet HWaddr 00:E0:4C:21:EE:03
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:240 (240.0 B)
Interrupt:5 Base address:0xb000
eth1 Link encap:Ethernet HWaddr 00:04:76:90:E0:FB
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:516 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:172960 (168.9 Kb) TX bytes:2292 (2.2 Kb)
Interrupt:11 Base address:0x9c00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6931 errors:0 dropped:0 overruns:0 frame:0
TX packets:6931 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:472663 (461.5 Kb) TX bytes:472663 (461.5 Kb
а инета нет.
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:240 (240.0 B)
Interrupt:5 Base address:0xb000
eth1 Link encap:Ethernet HWaddr 00:04:76:90:E0:FB
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:94 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:31200 (30.4 Kb) TX bytes:2292 (2.2 Kb)
Interrupt:11 Base address:0x9c00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:507 errors:0 dropped:0 overruns:0 frame:0
TX packets:507 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:34115 (33.3 Kb) TX bytes:34115 (33.3 Kb)
и после eth0 Link encap:Ethernet HWaddr 00:E0:4C:21:EE:03
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:240 (240.0 B)
Interrupt:5 Base address:0xb000
eth1 Link encap:Ethernet HWaddr 00:04:76:90:E0:FB
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:516 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:172960 (168.9 Kb) TX bytes:2292 (2.2 Kb)
Interrupt:11 Base address:0x9c00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6931 errors:0 dropped:0 overruns:0 frame:0
TX packets:6931 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:472663 (461.5 Kb) TX bytes:472663 (461.5 Kb
а инета нет.