LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-08-2014, 03:51 AM   #1
danielxs
Member
 
Registered: Feb 2014
Posts: 44

Rep: Reputation: Disabled
skype run only as root


Hi! I am a slackware 14.1 user and until a few days ago I was able to use skype as a regular user, but now I can only run skype when I am logged in as root.
When I try to open skype in terminal as a regular user it displays nothing in return.
I have tryied to build and reinstall skype many times with the same resault.

ls -l /usr/bin/skype returns:
-rwxr-xr-x 1 root root 31208916 May 7 2013 /usr/bin/skype

file /usr/bin/skype returns:
/usr/bin/skype: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), BuildID[sha1]=b7a7d116316d2d3552ff798838a9bf4fc58d0cd5, stripped

and

ldd /usr/bin/skype

Quote:
linux-gate.so.1 (0xffffe000)
libasound.so.2 => /usr/lib/libasound.so.2 (0xb57eb000)
libXv.so.1 => /usr/lib/libXv.so.1 (0xb57e6000)
libXss.so.1 => /usr/lib/libXss.so.1 (0xb57e3000)
librt.so.1 => /lib/librt.so.1 (0xb57da000)
libdl.so.2 => /lib/libdl.so.2 (0xb57d4000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb569d000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb568b000)
libQtDBus.so.4 => /usr/lib/libQtDBus.so.4 (0xb560a000)
libQtWebKit.so.4 => /usr/lib/libQtWebKit.so.4 (0xb3f50000)
libQtXml.so.4 => /usr/lib/libQtXml.so.4 (0xb3f0e000)
libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0xb3436000)
libQtNetwork.so.4 => /usr/lib/libQtNetwork.so.4 (0xb32ea000)
libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0xb2ffb000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb2fe1000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb2ef9000)
libm.so.6 => /lib/libm.so.6 (0xb2eb7000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb2e9a000)
libc.so.6 => /lib/libc.so.6 (0xb2d0f000)
/lib/ld-linux.so.2 (0xb7771000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb2cef000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb2cec000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb2ce6000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb2cac000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb2c1f000)
libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0xb2b6a000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb2b60000)
libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0xb29f9000)
libgstapp-0.10.so.0 => /usr/lib/libgstapp-0.10.so.0 (0xb29ed000)
libgstinterfaces-0.10.so.0 => /usr/lib/libgstinterfaces-0.10.so.0 (0xb29dd000)
libgstpbutils-0.10.so.0 => /usr/lib/libgstpbutils-0.10.so.0 (0xb29c0000)
libgstvideo-0.10.so.0 => /usr/lib/libgstvideo-0.10.so.0 (0xb29ad000)
libgstbase-0.10.so.0 => /usr/lib/libgstbase-0.10.so.0 (0xb2972000)
libgstreamer-0.10.so.0 => /usr/lib/libgstreamer-0.10.so.0 (0xb28bc000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb286e000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb286a000)
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb2868000)
libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb270f000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb25e0000)
libpng14.so.14 => /usr/lib/libpng14.so.14 (0xb25b5000)
libz.so.1 => /lib/libz.so.1 (0xb259f000)
libSM.so.6 => /usr/lib/libSM.so.6 (0xb2597000)
libICE.so.6 => /usr/lib/libICE.so.6 (0xb257e000)
libbz2.so.1 => /lib/libbz2.so.1 (0xb256c000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb2545000)
libffi.so.6 => /usr/lib/libffi.so.6 (0xb253f000)
libresolv.so.2 => /lib/libresolv.so.2 (0xb2525000)
liblzma.so.5 => /lib/liblzma.so.5 (0xb24fe000)
libuuid.so.1 => /lib/libuuid.so.1 (0xb24fa000)
If anyone can help me I will be greatfull.

Last edited by danielxs; 02-08-2014 at 04:59 AM.
 
Old 02-08-2014, 07:57 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603
Quote:
Originally Posted by danielxs View Post
until a few days ago I was able to use skype as a regular user
So what happened between when you were still able and when not?


Quote:
Originally Posted by danielxs View Post
I have tryied to build and reinstall skype many times with the same resault.
What would that accomplish?


Quote:
Originally Posted by danielxs View Post
When I try to open skype in terminal as a regular user it displays nothing in return.
What does
Code:
strace -o /tmp/strace.log -f -v /usr/bin/skype
return when run as unprivileged user?
 
Old 02-08-2014, 08:53 AM   #3
danielxs
Member
 
Registered: Feb 2014
Posts: 44

Original Poster
Rep: Reputation: Disabled
"So what happened between when you were still able and when not?"
I upgraded my mate desktop 1.6 packages (base and extra) from here: http://slackware.org.uk/msb/14.1/1.6/
..."What would that accomplish?" I don't know. I was hopping that will fix some errors. I guess not...


strace -o /tmp/strace.log -f -v /usr/bin/skype
As an unprivileged user returns absolutely nothig. It returns to the same line after a second with no log of any kind of error.
But the /tmp/strace.log looks like this:

22752 execve("/usr/bin/skype", ["/usr/bin/skype"], ["CPLUS_INCLUDE_PATH=/usr/lib/qt/i"..., "MATE_DESKTOP_SESSION_ID=this-is-"..., "MANPATH=/usr/local/man:/usr/man:"..., "HOSTNAME=daniel.example.net", "GPG_AGENT_INFO=/tmp/keyring-aA1Z"..., "TERM=xterm", "SHELL=/bin/bash", "XDG_SESSION_COOKIE=58e542b2b58ce"..., "WINDOWID=58726307", "MATE_KEYRING_CONTROL=/tmp/keyrin"..., "USER=daniel", "LS_COLORS=no=00:fi=00:di=01;34:l"..., "GDK_USE_XFT=1", "SSH_AUTH_SOCK=/tmp/keyring-aA1ZO"..., "SESSION_MANAGER=local/daniel:@/t"..., "T1LIB_CONFIG=/usr/share/t1lib/t1"..., "MINICOM=-c on", "PATH=/usr/local/bin:/usr/bin:/bi"..., "MAIL=/var/mail/daniel", "LC_COLLATE=C", "INPUTRC=/etc/inputrc", "PWD=/home/daniel", "LANG=en_US", "QT4DIR=/usr/lib/qt", "PS1=\\u@\\h:\\w\\$ ", "PS2=> ", "HOME=/home/daniel", "SHLVL=1", "LS_OPTIONS=-F -b -T 0 --color=au"..., "LESS=-M", "LOGNAME=daniel", "DBUS_SESSION_BUS_ADDRESS=unix:ab"..., "LESSOPEN=|lesspipe.sh %s", "PKG_CONFIG_PATH=/usr/local/lib/p"..., "DISPLAY=:0.0", "G_BROKEN_FILENAMES=1", "COLORTERM=mate-terminal", "XAUTHORITY=/home/daniel/.Xauthor"..., "_=/usr/bin/strace"]) = 0
22752 brk(0) = 0xb912b000
22752 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb5a48000
22752 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
22752 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
22752 fstat64(3, {st_dev=makedev(8, 9), st_ino=146434, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=328, st_size=167029, st_atime=2014/02/08-10:18:16, st_mtime=2014/02/08-10:18:16, st_ctime=2014/02/08-10:18:16}) = 0
22752 mmap2(NULL, 167029, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb5a1f000
22752 close(3) = 0
.....................................................................................
of course there are a lot of lines after the last one

Last edited by danielxs; 02-08-2014 at 09:00 AM.
 
Old 02-08-2014, 09:09 AM   #4
danielxs
Member
 
Registered: Feb 2014
Posts: 44

Original Poster
Rep: Reputation: Disabled
THANKS A LOT MAN FOR YOUR COMMAND! I've searched /tmp/strace.log a litlle bit more and at the end of the file I've found this lines:

22752 open("/tmp/qtsingleapp-skype-f0e6-3e8-lockfile", O_RDWR|O_CREAT|O_LARGEFILE|O_CLOEXEC, 0666) = -1 EACCES (Permission denied)
22752 write(3, "\1\0\0\0\0\0\0\0", 8) = 8
22752 socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC, 0) = 8
22752 fcntl64(8, F_GETFL) = 0x2 (flags O_RDWR)
22752 fcntl64(8, F_SETFL, O_RDWR|O_NONBLOCK) = 0
22752 connect(8, {sa_family=AF_LOCAL, sun_path="/tmp/qtsingleapp-skype-f0e6-3e8"}, 110) = -1 EACCES (Permission denied)
22752 close(8) = 0
22752 nanosleep({0, 250000000}, NULL) = 0
22752 socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC, 0) = 8
22752 fcntl64(8, F_GETFL) = 0x2 (flags O_RDWR)
22752 fcntl64(8, F_SETFL, O_RDWR|O_NONBLOCK) = 0
22752 connect(8, {sa_family=AF_LOCAL, sun_path="/tmp/qtsingleapp-skype-f0e6-3e8"}, 110) = -1 EACCES (Permission denied)

So I changed the privileged permisions to the above files, and skype starts again as a regular user. This thread is solved thanks to you unSpawn
 
Old 02-08-2014, 09:16 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603
Heh, you're welcome.
 
Old 03-12-2014, 08:17 PM   #6
Silent-Hunter
LQ Newbie
 
Registered: Mar 2014
Location: Boonsboro, Maryland
Distribution: Gentoo
Posts: 5

Rep: Reputation: Disabled
I have a similar issue, mine runs but it will not log in. If I run it as root it does, and works fine. Running strace came up with no such permissions problems, so I believe I have a different issue.

ls -l /opt/bin/skype
-rwxr-xr-x 1 root audio 29383892 Mar 9 19:45 /opt/bin/skype

file /opt/bin/skype
/opt/bin/skype: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, BuildID[sha1]=0a814f59ffedc2201f68634e577e37cac04be150, stripped

ldd /opt/bin/skype
linux-gate.so.1 (0xffffe000)
libasound.so.2 => /usr/lib32/libasound.so.2 (0xf5a31000)
libXv.so.1 => /usr/lib32/libXv.so.1 (0xf5a2b000)
libXss.so.1 => /usr/lib32/libXss.so.1 (0xf5a27000)
librt.so.1 => /lib32/librt.so.1 (0xf5a1e000)
libdl.so.2 => /lib32/libdl.so.2 (0xf5a18000)
libX11.so.6 => /usr/lib32/libX11.so.6 (0xf58e2000)
libXext.so.6 => /usr/lib32/libXext.so.6 (0xf58d0000)
libQtDBus.so.4 => /usr/lib32/qt4/libQtDBus.so.4 (0xf5852000)
libQtWebKit.so.4 => /usr/lib32/qt4/libQtWebKit.so.4 (0xf411a000)
libQtXml.so.4 => /usr/lib32/qt4/libQtXml.so.4 (0xf40d9000)
libQtGui.so.4 => /usr/lib32/qt4/libQtGui.so.4 (0xf3640000)
libQtNetwork.so.4 => /usr/lib32/qt4/libQtNetwork.so.4 (0xf3506000)
libQtCore.so.4 => /usr/lib32/qt4/libQtCore.so.4 (0xf3227000)
libpthread.so.0 => /lib32/libpthread.so.0 (0xf320c000)
libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32/libstdc++.so.6 (0xf311f000)
libm.so.6 => /lib32/libm.so.6 (0xf30db000)
libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32/libgcc_s.so.1 (0xf30bf000)
libc.so.6 => /lib32/libc.so.6 (0xf2f12000)
/lib/ld-linux.so.2 (0xf5b4f000)
libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf2ef0000)
libdbus-1.so.3 => /usr/lib32/libdbus-1.so.3 (0xf2eaf000)
libsqlite3.so.0 => /usr/lib32/libsqlite3.so.0 (0xf2df8000)
libXrender.so.1 => /usr/lib32/libXrender.so.1 (0xf2ded000)
libgstapp-0.10.so.0 => /usr/lib32/libgstapp-0.10.so.0 (0xf2de0000)
libgstinterfaces-0.10.so.0 => /usr/lib32/libgstinterfaces-0.10.so.0 (0xf2dce000)
libgstpbutils-0.10.so.0 => /usr/lib32/libgstpbutils-0.10.so.0 (0xf2dac000)
libgstvideo-0.10.so.0 => /usr/lib32/libgstvideo-0.10.so.0 (0xf2d94000)
libgstbase-0.10.so.0 => /usr/lib32/libgstbase-0.10.so.0 (0xf2d33000)
libgstreamer-0.10.so.0 => /usr/lib32/libgstreamer-0.10.so.0 (0xf2c4c000)
libgobject-2.0.so.0 => /usr/lib32/libgobject-2.0.so.0 (0xf2bfe000)
libglib-2.0.so.0 => /usr/lib32/libglib-2.0.so.0 (0xf2ad9000)
libpng15.so.15 => /usr/lib32/libpng15.so.15 (0xf2aa8000)
libz.so.1 => /lib32/libz.so.1 (0xf2a91000)
libfreetype.so.6 => /usr/lib32/libfreetype.so.6 (0xf29f6000)
libSM.so.6 => /usr/lib32/libSM.so.6 (0xf29ed000)
libICE.so.6 => /usr/lib32/libICE.so.6 (0xf29d3000)
libXi.so.6 => /usr/lib32/libXi.so.6 (0xf29c2000)
libXrandr.so.2 => /usr/lib32/libXrandr.so.2 (0xf29b6000)
libXfixes.so.3 => /usr/lib32/libXfixes.so.3 (0xf29b0000)
libXcursor.so.1 => /usr/lib32/libXcursor.so.1 (0xf29a5000)
libXinerama.so.1 => /usr/lib32/libXinerama.so.1 (0xf29a1000)
libfontconfig.so.1 => /usr/lib32/libfontconfig.so.1 (0xf2967000)
libssl.so.1.0.0 => /usr/lib32/libssl.so.1.0.0 (0xf2904000)
libcrypto.so.1.0.0 => /usr/lib32/libcrypto.so.1.0.0 (0xf2778000)
libXau.so.6 => /usr/lib32/libXau.so.6 (0xf2774000)
libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf276d000)
libgmodule-2.0.so.0 => /usr/lib32/libgmodule-2.0.so.0 (0xf2768000)
libgthread-2.0.so.0 => /usr/lib32/libgthread-2.0.so.0 (0xf2764000)
libxml2.so.2 => /usr/lib32/libxml2.so.2 (0xf2610000)
libffi.so.6 => /usr/lib32/libffi.so.6 (0xf2608000)
libbz2.so.1 => /lib32/libbz2.so.1 (0xf25f7000)
libuuid.so.1 => /lib32/libuuid.so.1 (0xf25f0000)
libexpat.so.1 => /usr/lib32/libexpat.so.1 (0xf25c8000)
libkrb5.so.3 => /usr/lib32/libkrb5.so.3 (0xf250a000)
libk5crypto.so.3 => /usr/lib32/libk5crypto.so.3 (0xf24d6000)
libcom_err.so.2 => /lib32/libcom_err.so.2 (0xf24d0000)
libkrb5support.so.0 => /usr/lib32/libkrb5support.so.0 (0xf24c4000)
libkeyutils.so.1 => /lib32/libkeyutils.so.1 (0xf24c0000)
libresolv.so.2 => /lib32/libresolv.so.2 (0xf24a8000)
 
Old 03-13-2014, 08:32 AM   #7
danielxs
Member
 
Registered: Feb 2014
Posts: 44

Original Poster
Rep: Reputation: Disabled
@Silent-Hunter The problem surelly can be found in your strace log file. That file should contain every stage in your skype linear execution, so at the end of the file, it must be the reason why skype can not be executed anymore.
Therefore strace log file (/tmp/strace.log) from this command: "strace -o /tmp/strace.log -f -v /usr/bin/skype" is important for debugging.

Last edited by danielxs; 03-13-2014 at 08:47 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to login as root into Mint 12 - and how to get Skype audio working PaulFC5 Linux Mint 2 08-10-2012 12:46 AM
Does Skype run on Fedora 14? TigerLinux Fedora 16 03-14-2011 09:22 PM
noise in skype to skype calls in skype v2.1 beta for fedora mq15 Linux - Software 0 01-20-2010 01:04 AM
Server: Any ideas how to run skype without X installed on the box? frenchn00b Linux - Server 2 10-16-2009 02:04 PM
Cant Run Skype in Fedora 11 AbdurRahman Linux - Software 14 08-31-2009 06:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration