JJSantos
(usa Gentoo)
Enviado em 16/07/2012 - 00:48h
jimmy456 escreveu:
sim , mas a senha root eu sei. o problema é que eu não posso me logar como root no modo gráfico. se pudesse a maioria do meu pro blema ia-se embora....
Para não dizer que sou ruim, siga como exemplo.
Meu arquivo group
+-[root]--[CulturaHacker]:/home/santos$
+-->>cat /etc/group
root:x:0:root
bin:x:1:root,bin,daemon
daemon:x:2:root,bin,daemon
sys:x:3:root,bin,adm
adm:x:4:root,adm,daemon
tty:x:5:
disk:x:6:root,adm
lp:x:7:lp,santos
mem:x:8:
kmem:x:9:
wheel:x:10:root,user,santos
floppy:x:11:root
mail:x:12:mail
news:x:13:news
uucp:x:14:uucp,santos
man:x:15:man
cron:x:16:cron
console:x:17:santos
audio:x:18:user,pulse,santos,vdr
cdrom:x:19:santos,vdr
dialout:x:20:root
ftp:x:21:
sshd:x:22:
at:x:25:at
tape:x:26:root
video:x:27:root,santos,vdr,gdm
xfs:x:33:xfs
cdrw:x:80:user,santos
usb:x:85:santos
users:x:100:santos
nofiles:x:200:
postfix:x:207:
postdrop:x:208:
portage:x:250:portage,user,santos
utmp:x:406:
nogroup:x:65533:
nobody:x:65534:
dhcp:x:407:
messagebus:x:410:santos
ldap:x:439:
rpc:x:111:
plugdev:x:441:user,usbmux,santos
scanner:x:442:santos
avahi:x:444:
lpadmin:x:106:santos
locate:x:245:
netdev:x:451:
crontab:x:1008:
realtime:x:1012:
entropy:x:1000:santos
polkituser:x:1016:santos
avahi-autoipd:x:1018:
entropy-nopriv:x:452:
pcscd:x:105:
openct:x:104:pcscd
dnsmasq:x:103:
pulse-access:x:102:santos
pulse:x:101:santos
transmission:x:999:
hsqldb:x:998:
vboxguest:x:997:santos
colord:x:996:
santos:x:1001:santos
mysql:x:60:
snort:x:995:
tcpdump:x:994:
vdr:x:993:
clamav:x:992:
wireshark:x:991:
ntp:x:123:
squid:x:31:
games:x:35:
gdm:x:990:
+-[root]--[CulturaHacker]:/home/santos$
+-->>
E o sudoers
+-[root]--[CulturaHacker]:/home/santos$
+-->>cat /etc/sudoers
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
# Failure to use 'visudo' may result in syntax or file permission errors
# that prevent sudo from running.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
#%wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
#Added by Sabayon Installer
# %wheel ALL=ALL
+-[root]--[CulturaHacker]:/home/santos$
+-->>