43 / 7 / 0
Регистрация: 16.09.2009
Сообщений: 115
1

Centos 6.3 gedit от root `a

28.10.2012, 11:57. Показов 3533. Ответов 13
Метки нет (Все метки)

Author24 — интернет-сервис помощи студентам
часто возникает необходимость править файлы, к которым нет доступа у текущего пользователя.
собственно, как запустить gedit из-под root - известно:
Код
su
gedit
однако, приходится каждый раз
ctrl + o
потом нудно рыскать по дереву каталогов...
а как сделать, чтобы файлы, на которые у меня нет прав доступа, открывались из nautilus в gedit от root `a?
0
Programming
Эксперт
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
28.10.2012, 11:57
Ответы с готовыми решениями:

Как дать права root для gedit?
Добрый день. Я совершенно начинающий юзер Debian. Только-только его поставил. Установил Апач, ПХП,...

CentOS 7 изменить размер root
Добрый, помогите пожалуйста, имеется сервер на CentOS (Supermicro IPME): # lsblk NAME ...

[Tkinter] Как работает root.rowconfigure / root.columnconfigure?
Немного не понял для чего они и как вообще используются

Сделать, чтобы базовые слои layer и layer1, были в одном root а layer2 в другом root
Доброго времени суток. Вот код <html> <head> <title> A Basic GeoExt Page </title> <script...

13
исследователь
325 / 104 / 3
Регистрация: 18.03.2010
Сообщений: 1,079
Записей в блоге: 2
29.10.2012, 21:22 2
Цитата Сообщение от any_stuff Посмотреть сообщение
часто возникает необходимость править файлы, к которым нет доступа у текущего пользователя.
собственно, как запустить gedit из-под root - известно:
Код
su
gedit
однако, приходится каждый раз
ctrl + o
потом нудно рыскать по дереву каталогов...
а как сделать, чтобы файлы, на которые у меня нет прав доступа, открывались из nautilus в gedit от root `a?
Bash
1
su gedit /путь к файлу
Пробел должен быть между gedit и путем.
0
4866 / 3288 / 468
Регистрация: 10.12.2008
Сообщений: 10,570
30.10.2012, 05:08 3
Цитата Сообщение от any_stuff Посмотреть сообщение
открывались из nautilus в gedit от root `a?
нужно открыть файловый менеджер с правами root
Bash
1
sudo dolphin
0
43 / 7 / 0
Регистрация: 16.09.2009
Сообщений: 115
30.10.2012, 12:32  [ТС] 4
Цитата Сообщение от accept Посмотреть сообщение
нужно открыть файловый менеджер с правами root
Bash
1
sudo dolphin
спасибо.
действительно странно, как эта простая мысль не пришла мне самому в голову.

однако, dolphin у меня не установлен:
Bash
1
2
3
su
dolphin
bash: dolphin: command not found
(с судоерами пока заморачиваться неохота)

а после
Bash
1
2
su
nautilus
выдаёт такую простынь:
Кликните здесь для просмотра всего текста
(nautilus:2546): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported


(nautilus:2546): Eel-WARNING **: GConf error:
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)

(nautilus:2546): Eel-WARNING **: GConf error:
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)

(nautilus:2546): Eel-WARNING **: GConf error:
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)

(nautilus:2546): Eel-WARNING **: GConf error:
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)
GConf warning: failure listing pairs in `/apps/nautilus/preferences': Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)GConf warning: failure listing pairs in `/desktop/gnome/file_views': Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)GConf warning: failure listing pairs in `/desktop/gnome/background': Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)GConf warning: failure listing pairs in `/desktop/gnome/lockdown': Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)GConf warning: failure listing pairs in `/apps/nautilus/desktop': Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)GConf warning: failure listing pairs in `/apps/nautilus/icon_view': Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)GConf warning: failure listing pairs in `/apps/nautilus/desktop-metadata': Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)
(nautilus:2546): Unique-DBus-WARNING **: Unable to open a connection to the session bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(nautilus:2546): Unique-DBus-WARNING **: Unable to connect to the running instance, aborting.

(nautilus:2546): Unique-DBus-WARNING **: Unable to open a connection to the session bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

(nautilus:2546): Unique-DBus-WARNING **: Unable to connect to the running instance, aborting.
0
4866 / 3288 / 468
Регистрация: 10.12.2008
Сообщений: 10,570
31.10.2012, 05:56 5
Код
[root@localhost guest]# dbus-launch dolphin
1
43 / 7 / 0
Регистрация: 16.09.2009
Сообщений: 115
31.10.2012, 09:42  [ТС] 6
Цитата Сообщение от accept Посмотреть сообщение
Код
[root@localhost guest]# dbus-launch dolphin
ага. так лучше.
хотя, повторюсь, dolphin у меня не установлен, ибо гном.
да и незачем: в качестве двухпанельника использую mc.

однако, вот незадача:
nautilus, открытый с рабочего стола (на скриншоте слева) разительно отличается от открытого из консоли (справа)
0
4866 / 3288 / 468
Регистрация: 10.12.2008
Сообщений: 10,570
31.10.2012, 10:03 7
Цитата Сообщение от any_stuff Посмотреть сообщение
nautilus, открытый с рабочего стола (на скриншоте слева) разительно отличается от открытого из консоли (справа)
используются настройки из каталога /root
0
43 / 7 / 0
Регистрация: 16.09.2009
Сообщений: 115
31.10.2012, 14:30  [ТС] 8
копирование
Код
/home/username/.gconf
в
/root
с предварительным удалением /root/.gconf
не приносит никаких результатов.

как подцепить мои настройки в /root
?
0
4866 / 3288 / 468
Регистрация: 10.12.2008
Сообщений: 10,570
01.11.2012, 05:58 9
настрой root'овскую версию, посмотри, где появились настройки, а потом попробуй заменить
0
43 / 7 / 0
Регистрация: 16.09.2009
Сообщений: 115
01.11.2012, 20:09  [ТС] 10
даже не знаю, что там можно настроить:
если залогиниться от рута, nautilus выглядит вот так:
http://storage5.static.itmages... aa308.jpeg
а если запускать его:
Bash
1
2
su
dbus-launch nautilus
он выглядит так:
http://storage3.static.itmages... d2dfd.jpeg
даже боковую панель включить нельзя
0
4866 / 3288 / 468
Регистрация: 10.12.2008
Сообщений: 10,570
02.11.2012, 08:42 11
Цитата Сообщение от any_stuff Посмотреть сообщение
если залогиниться от рута, nautilus выглядит вот так:
запускаешь также ?
0
43 / 7 / 0
Регистрация: 16.09.2009
Сообщений: 115
03.11.2012, 00:08  [ТС] 12
Цитата Сообщение от accept Посмотреть сообщение
запускаешь также ?
нет запускаю
applications -> system tools -> file browser
но залогинившись рутом

если запускать через dbus результат тот же, что и через su dbus
и совершенно неясно, где всё это хозяйство настраивать
0
4866 / 3288 / 468
Регистрация: 10.12.2008
Сообщений: 10,570
03.11.2012, 03:13 13
Цитата Сообщение от any_stuff Посмотреть сообщение
applications -> system tools -> file browser
нужно открыть свойства этого пункта и посмотреть, как там запускается
1
43 / 7 / 0
Регистрация: 16.09.2009
Сообщений: 115
03.11.2012, 07:57  [ТС] 14
Цитата Сообщение от accept Посмотреть сообщение
нужно открыть свойства этого пункта и посмотреть, как там запускается
сто пудов.
итого правильный ответ:
Bash
1
2
su
dbus-launch nautilus --browser
0
03.11.2012, 07:57
IT_Exp
Эксперт
87844 / 49110 / 22898
Регистрация: 17.06.2006
Сообщений: 92,604
03.11.2012, 07:57
Помогаю со студенческими работами здесь

Как лечить shown root:root -R /
У меня есть маленький CentOS7 http сервер. При очередном редактирования крона на бэкап данных...

gEdit
Как в gEdit задать кодировку файла? а то cp1251 неправильно отображает...

Кодировка в gEdit
Фигли кодировка сама меняется?! Я сохраняю документ в Windows 1251, закрываю. Потом когда по новой...

Как установить gedit?
Собственно при установке gedit выскакивает ошибка web@web-X501A1 ~ $ sudo apt-get install gedit...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
14
Ответ Создать тему
Опции темы

КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2024, CyberForum.ru