LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   can't login after run su command (http://www.linuxquestions.org/questions/slackware-14/cant-login-after-run-su-command-4175440077/)

sotitrox 12-05-2012 12:39 AM

can't login after run su command
 
hello, I can't login after run "su -c 'vidalia'"(I was installing tor), after that I can't run anything in my desktop, "denied permision", and restart my computer, but can't login in, when i put my username and my password, a dialog box with a message, "startxfce4 not exist", but I login with the root user, and I made a new user, but have the same problem.
how can fix this problem?

gnashley 12-05-2012 03:11 AM

I'd start by investigating just what the command 'vidalia' does.

lkraemer 12-05-2012 01:08 PM

sotitrox,
Ref the man page for the su command:

Code:

man su
NAME
su - change user ID or become superuser

SYNOPSIS
su [options] [username]

DESCRIPTION
The su command is used to become another user during a login session.
Invoked without a username, su defaults to becoming the superuser. The
optional argument - may be used to provide an environment similar to
what the user would expect had the user logged in directly.

Additional arguments may be provided after the username, in which case
they are supplied to the user's login shell. In particular, an argument
of -c will cause the next argument to be treated as a command by most
command interpreters. The command will be executed by the shell
specified in /etc/passwd for the target user.


Did your command "vidalia" finish? Were there errors? Maybe if you do the following command, as root, you can see
more error information in detail:
Code:

dmesg |tail

Can't you do a CNTL ALT F1 and get to a Terminal, and login to use the commands like: user, who, finger, and others to
see who is logged in etc..? CNTL ALT F7 will take you back to your GUI.

What is the URL of the guide, blog, or tutorial you were following?

Thanks.

LK

sotitrox 12-05-2012 03:08 PM

vidalia messages

Quote:

dic 05 18:00:41.048 [Aviso] Tor v0.2.2.37 (git-fce6eb1c44e87bc2). This is experimental software. Do not rely on it for strong anonymity. (Running on Linux x86_64)
dic 05 18:00:41.048 [Aviso] Initialized libevent version 2.0.10-stable using method epoll. Good.
dic 05 18:00:41.048 [Aviso] Opening Socks listener on 127.0.0.1:9050
dic 05 18:00:41.048 [Aviso] Opening Control listener on 127.0.0.1:9051
dic 05 18:00:41.048 [Aviso] Parsing GEOIP file /usr/share/tor/geoip.
dic 05 18:00:42.115 [Advertencia] You are running Tor as root. You don't need to, and you probably shouldn't.
dic 05 18:00:42.115 [Aviso] OpenSSL OpenSSL 1.0.1c 10 May 2012 looks like version 0.9.8m or later; I will try SSL_OP to enable renegotiation
dic 05 18:00:42.115 [Aviso] We now have enough directory information to build circuits.
dic 05 18:00:42.115 [Aviso] Bootstrapped 80%: Connecting to the Tor network.
dic 05 18:00:42.116 [Aviso] New control connection opened.
dic 05 18:00:43.081 [Aviso] Bootstrapped 85%: Finishing handshake with first hop.
dic 05 18:00:44.345 [Aviso] Bootstrapped 90%: Establishing a Tor circuit.
dic 05 18:00:50.050 [Advertencia] Please upgrade! This version of Tor (0.2.2.37) is obsolete, according to the directory authorities. Recommended versions are: 0.2.2.39,0.2.3.24-rc,0.2.3.25,0.2.4.5-alpha,0.2.4.6-alpha
dic 05 18:00:50.050 [Aviso] Our directory information is no longer up-to-date enough to build circuits: We have only 291/3074 usable descriptors.
dic 05 18:00:50.050 [Aviso] I learned some more directory information, but not enough to build a circuit: We have only 291/3074 usable descriptors.
dic 05 18:00:53.369 [Aviso] I learned some more directory information, but not enough to build a circuit: We have only 387/3074 usable descriptors.
dic 05 18:00:53.721 [Aviso] I learned some more directory information, but not enough to build a circuit: We have only 483/3074 usable descriptors.
dic 05 18:00:53.928 [Aviso] I learned some more directory information, but not enough to build a circuit: We have only 579/3074 usable descriptors.
dic 05 18:00:53.978 [Aviso] I learned some more directory information, but not enough to build a circuit: We have only 675/3074 usable descriptors.
dic 05 18:00:54.187 [Aviso] I learned some more directory information, but not enough to build a circuit: We have only 214/836 usable exit node descriptors.
dic 05 18:00:54.351 [Aviso] I learned some more directory information, but not enough to build a circuit: We have only 238/836 usable exit node descriptors.
dic 05 18:00:54.351 [Aviso] I learned some more directory information, but not enough to build a circuit: We have only 259/836 usable exit node descriptors.
dic 05 18:00:54.653 [Aviso] We now have enough directory information to build circuits.
dic 05 18:00:57.184 [Aviso] Tor has successfully opened a circuit. Looks like client functionality is working.
dic 05 18:00:57.184 [Aviso] Bootstrapped 100%: Done.
the problem is (I think) the file permissions, i don't know how to use tor, and when finish the install, I run vidalia, but I can't, because not permission to do that, and I run vidalia with super user privilegies, and ta-da, the normal user can't login or run anything, only the root can.

this is the web where I manually edited in my pc, http://slackbuilds.org/repository/14.0/network/tor/

Quote:

his script requires a 'tor' user/group to exist before running.
The recommended UID/GID is 220. You can create these like so:
groupadd -g 220 tor
useradd -u 220 -g 220 -c "The Onion Router" -d /dev/null -s /bin/false tor
I do that, and then install vidalia, the interface of tor.

sotitrox 12-05-2012 03:27 PM

I solved, but i don't know if will be have another problem for that, but I login normally and i can run anything normally.

It was a permission problem, I found the answer in google https://bbs.archlinux.org/viewtopic....16939#p1116939.

only run:

Quote:

chmod 755 /usr/bin
solved my problem, :D, and never, never!!!! run vidalia as a root user :D


All times are GMT -5. The time now is 05:18 AM.