Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
new user bin bash permission denied
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
gnac
Guru
Guru


Joined: 30 Jun 2003
Posts: 302
Location: Columbia River Gorge

PostPosted: Wed Jan 03, 2007 6:13 pm    Post subject: new user bin bash permission denied Reply with quote

So I created a new user for a visiting relative last week.
Code:
useradd -m -G users,audio -s /bin/bash mom

All went well until this morning when she tried to login. KDM seemed to accept the login, went blank, and then returned to the login screen. When I tried logging in as her via the console, or su'ing from either me or as root, I get the following error:
Code:
# su mom
Cannot execute /bin/bash: Permission denied


Whats happened? She was able to log in fine yesterday. The other users on the system (myself, root ...) are able to log in as well.

On a separate note, all of the selected users in the kdm user list have dissapeared. Don't no if its related, but it appears to have happened at the same time.

FWIW, ls -l /bin/bash gives:
Code:
# ls -l /bin/bash
-rwxr-xr-x 1 root root 539460 Oct 22 14:23 /bin/bash


Final note, I tried creating a different user "test" with and without the -s /bin/bash with the same results for this new user.
_________________
"I thought she'd steal my heart, instead she stole my kidney,
and now its for sale, on the black market in Sydney" - Better Abraham
Back to top
View user's profile Send private message
didl
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 1106
Location: Pittsburgh, PA

PostPosted: Wed Jan 03, 2007 6:38 pm    Post subject: Reply with quote

The permission problem could be somewhere else, i.e. make
sure that your user can access /home/<user>, /proc, /etc, ...
as well as all the dynamic libs /bin/bash links against (ldd /bin/bash
will show them).

Let us know if still doesn't help you.
Back to top
View user's profile Send private message
gnac
Guru
Guru


Joined: 30 Jun 2003
Posts: 302
Location: Columbia River Gorge

PostPosted: Wed Jan 03, 2007 7:26 pm    Post subject: Reply with quote

One thing that looked out of whack was /etc.

At first, its permissions were
Code:
drwxr-x--- 76 myusername apache 5.1K Jan  3 10:26 /etc


I changed it to root/users since the "mom" user was not in the apache group. I also tried:

Code:
home # ll /etc -d
drwxr-x--- 76 root users 5.1K Jan  3 10:26 /etc
home # su mom
Cannot execute /bin/bash: Permission denied
home # chmod o+rx /etc
home # ll /etc -d
drwxr-xr-x 76 root users 5.1K Jan  3 10:26 /etc
home # su mom
Cannot execute /bin/bash: Permission denied
home # chmod o-rx /etc
home # ll /etc -d
drwxr-x--- 76 root users 5.1K Jan  3 10:26 /etc
home #


with no luck.

/home/mom also had a defunct group attribute, which I replaced with "users" with no luck.
Code:

home $ ll /home/mom -d
drwxr-xr-x 2 mom 1007 192 Jan  3 09:14 /home/mom
home # chgrp users /home/mom
home # ll /home/mom -d
drwxr-xr-x 2 mom users 192 Jan  3 09:14 /home/mom


I also checked the following, and everything seems okay?
Code:

home $ ll /proc/ -d
dr-xr-xr-x 93 root root 0 Jan  3 00:17 /proc/

home $ ldd /bin/bash
        linux-gate.so.1 =>  (0xb7fa5000)
        libncurses.so.5 => /lib/libncurses.so.5 (0x44cdd000)
        libdl.so.2 => /lib/libdl.so.2 (0x44988000)
        libc.so.6 => /lib/libc.so.6 (0x44843000)
        /lib/ld-linux.so.2 (0x44078000)
home $ ll /lib/libncurses.so.5
lrwxrwxrwx 1 root root 17 Oct 22 14:21 /lib/libncurses.so.5 -> libncurses.so.5.5
home $ ll /lib/libdl.so.2
lrwxrwxrwx 1 root root 12 Nov 16 13:11 /lib/libdl.so.2 -> libdl-2.4.so
home $ ll /lib/libc.so.6
lrwxrwxrwx 1 root root 11 Nov 16 13:11 /lib/libc.so.6 -> libc-2.4.so
home $ ll /lib/ld-linux.so.2
lrwxrwxrwx 1 root root 9 Nov 16 13:11 /lib/ld-linux.so.2 -> ld-2.4.so
home $


On yet another note, I tried to install a samsung printer driver which had root access an may have reaked some havoc on my system.

Here is a link to the install script:
NOTE: I modified the install scripts to look for /etc/init.d/cupsd instead of /etc/init.d/cups.
http://www.dharty.com/src/SamsungInstall.sh.txt

and it references this file
http://www.dharty.com/src/set_variables.sh.txt

The complete driver is available here:
download page
<driver link>

Thanks
_________________
"I thought she'd steal my heart, instead she stole my kidney,
and now its for sale, on the black market in Sydney" - Better Abraham
Back to top
View user's profile Send private message
gnac
Guru
Guru


Joined: 30 Jun 2003
Posts: 302
Location: Columbia River Gorge

PostPosted: Wed Jan 03, 2007 7:33 pm    Post subject: Reply with quote

Following the funnyness with the /etc permissions, I added "mom" to the apache group
Code:
usermod -G users,apache mom
and was able to get log in as mom. Obviously this is a short term fix as I don't want any new users to have to be members of the apache group.

Don't know why that would have changed things over night still.
_________________
"I thought she'd steal my heart, instead she stole my kidney,
and now its for sale, on the black market in Sydney" - Better Abraham
Back to top
View user's profile Send private message
didl
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 1106
Location: Pittsburgh, PA

PostPosted: Wed Jan 03, 2007 7:35 pm    Post subject: Reply with quote

I'd probably do a "find" to pick out all directories/files that belong to group apache and
see if there's anything that shouldn't be there.
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Wed Jan 03, 2007 11:25 pm    Post subject: Reply with quote

hmm, owner on /etc of myusername:apache is mighty suspicious... you do a lot of amateur scripting or CGI?
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
gnac
Guru
Guru


Joined: 30 Jun 2003
Posts: 302
Location: Columbia River Gorge

PostPosted: Wed Jan 03, 2007 11:42 pm    Post subject: Reply with quote

erik258 wrote:
hmm, owner on /etc of myusername:apache is mighty suspicious... you do a lot of amateur scripting or CGI?


no, with the exception of the samsung printer driver install I tried to do last night.

First, I noticed that my "group" id for my user was 81 (apache) as opposed to 100 like all the other users. Its appears to have been this way for a while.

Second, I noticed that the directory permissions for the extracted driver folder were also myuser:apache.

Third, I tried to do a test run on the install as myuser. This failed, but it may have bunked up the permissions. If not, perhaps the installer used the permisions of the folder when installing/modifying files and folders.

It had to be the printer driver installer since that was the only thing I did that would have touched those folders in the past day.
_________________
"I thought she'd steal my heart, instead she stole my kidney,
and now its for sale, on the black market in Sydney" - Better Abraham


Last edited by gnac on Thu Jan 04, 2007 6:21 am; edited 1 time in total
Back to top
View user's profile Send private message
gnac
Guru
Guru


Joined: 30 Jun 2003
Posts: 302
Location: Columbia River Gorge

PostPosted: Thu Jan 04, 2007 6:21 am    Post subject: Reply with quote

Well, I've done some major cleaning and fixing, but I still can't get users to login (or sudo into) without being part of the apache group.

After cleaning what I new to be wrong, I've done the following:
Code:
# find /bin -group apache >> apacheGroupFind.txt
# find /boot -group apache >> apacheGroupFind.txt
# find /dev -group apache >> apacheGroupFind.txt
# find /etc -group apache >> apacheGroupFind.txt
# find /lib -group apache >> apacheGroupFind.txt
# find /lib -group apache >> apacheGroupFind.txt
# find /opt -group apache >> apacheGroupFind.txt
# find /proc -group apache >> apacheGroupFind.txt
# find /root -group apache >> apacheGroupFind.txt
# find /sbin -group apache >> apacheGroupFind.txt
# find /sys -group apache >> apacheGroupFind.txt
# find /usr -group apache >> apacheGroupFind.txt
# find /var -group apache >> apacheGroupFind.txt


And came up with the following not so interesting results:

Code:
/opt/ww2d
/opt/wine-0.9.8
/opt/eclipse
/opt/enemy-territory/pbcl.db
/proc/6869
/proc/6869/task
/proc/6869/task/6869
/proc/6869/task/6869/attr
/proc/6869/attr
/proc/6918
/proc/6918/task
/proc/6918/task/6918
/proc/6918/task/6918/attr
/proc/6918/attr
/proc/6919
/proc/6919/task
/proc/6919/task/6919
/proc/6919/task/6919/attr
/proc/6919/attr
/proc/8930
/proc/8930/task
/proc/8930/task/8930
/proc/8930/task/8930/attr
/proc/8930/attr
/proc/5143
/proc/5143/task
/proc/5143/task/5143
/proc/5143/task/5143/attr
/proc/5143/attr
/usr/src/linux-cobalt-2.6.16-gentoo-r9/gen_v-minimal.config
/usr/src/linux-cobalt-2.6.16-gentoo-r9/linux-cobalt-2.6.16.2006032101.illogical.patch
/usr/sbin/suexec2
/usr/share/games/quake3/baseq3/pak0.pk3
/var/lib/dav
/var/log/apache2
/var/run/screen/S-dwh/14713.irssi
/var/run/screen/S-dwh/26242.muggin
/var/run/screen/S-dwh/13453.monitor
/var/tmp/
/var/cache/apache2
/var/spool/cups-pdf/dwh


and then i did
Code:

#ls -ld $(< apacheGroupFind.txt )
drwxr-xr-x 7 dwh    apache       568 Dec 20 11:11 /opt/eclipse
-rw-rw---- 1 dwh    apache       206 Nov 12 14:40 /opt/enemy-territory/pbcl.db
drwxr-xr-x 6 dwh    apache       152 Jul 26 15:56 /opt/wine-0.9.8
drwxrwx--- 4 dwh    apache       280 Jun  4  2006 /opt/ww2d
dr-xr-xr-x 5 apache apache         0 Jan  3 21:40 /proc/5143
dr-xr-xr-x 2 apache apache         0 Jan  3 22:12 /proc/5143/attr
dr-xr-xr-x 3 apache apache         0 Jan  3 22:12 /proc/5143/task
dr-xr-xr-x 4 apache apache         0 Jan  3 22:12 /proc/5143/task/5143
dr-xr-xr-x 2 apache apache         0 Jan  3 22:12 /proc/5143/task/5143/attr
dr-xr-xr-x 5 apache apache         0 Jan  3 21:40 /proc/6869
dr-xr-xr-x 2 apache apache         0 Jan  3 22:12 /proc/6869/attr
dr-xr-xr-x 3 apache apache         0 Jan  3 22:12 /proc/6869/task
dr-xr-xr-x 4 apache apache         0 Jan  3 22:12 /proc/6869/task/6869
dr-xr-xr-x 2 apache apache         0 Jan  3 22:12 /proc/6869/task/6869/attr
dr-xr-xr-x 5 apache apache         0 Jan  3 21:40 /proc/6918
dr-xr-xr-x 2 apache apache         0 Jan  3 22:12 /proc/6918/attr
dr-xr-xr-x 3 apache apache         0 Jan  3 22:12 /proc/6918/task
dr-xr-xr-x 4 apache apache         0 Jan  3 22:12 /proc/6918/task/6918
dr-xr-xr-x 2 apache apache         0 Jan  3 22:12 /proc/6918/task/6918/attr
dr-xr-xr-x 5 apache apache         0 Jan  3 21:40 /proc/6919
dr-xr-xr-x 2 apache apache         0 Jan  3 22:12 /proc/6919/attr
dr-xr-xr-x 3 apache apache         0 Jan  3 22:12 /proc/6919/task
dr-xr-xr-x 4 apache apache         0 Jan  3 22:12 /proc/6919/task/6919
dr-xr-xr-x 2 apache apache         0 Jan  3 22:12 /proc/6919/task/6919/attr
dr-xr-xr-x 5 apache apache         0 Jan  3 21:40 /proc/8930
dr-xr-xr-x 2 apache apache         0 Jan  3 22:12 /proc/8930/attr
dr-xr-xr-x 3 apache apache         0 Jan  3 22:12 /proc/8930/task
dr-xr-xr-x 4 apache apache         0 Jan  3 22:12 /proc/8930/task/8930
dr-xr-xr-x 2 apache apache         0 Jan  3 22:12 /proc/8930/task/8930/attr
-rws--x--- 1 root   apache     11604 Oct 23 02:07 /usr/sbin/suexec2
-r-xr-xr-x 1 dwh    apache 479493658 Feb 13  2006 /usr/share/games/quake3/baseq3/pak0.pk3
-rw-rw---- 1 dwh    apache     25434 Aug  2 23:05 /usr/src/linux-cobalt-2.6.16-gentoo-r9/gen_v-minimal.config
-rw-rw---- 1 dwh    apache    223702 Aug  2 23:05 /usr/src/linux-cobalt-2.6.16-gentoo-r9/linux-cobalt-2.6.16.2006032101.illogical.patch
drwxr-xr-x 2 apache apache        88 Jan  3 17:51 /var/cache/apache2
drwxr-xr-x 2 apache apache        88 Oct 23 02:07 /var/lib/dav
drwxr-xr-x 2 apache apache       568 Dec 31 03:10 /var/log/apache2
prw------- 1 dwh    apache         0 Dec 28 21:37 /var/run/screen/S-dwh/13453.monitor
prw------- 1 dwh    apache         0 Dec 28 17:18 /var/run/screen/S-dwh/14713.irssi
prw------- 1 dwh    apache         0 Dec 28 17:18 /var/run/screen/S-dwh/26242.muggin
lrwxrwxrwx 1 dwh    apache        20 Apr 13  2006 /var/spool/cups-pdf/dwh -> /home/dwh/pdfPrinter
drwxrwxrwt 7 root   root         480 Jan  2 23:25 /var/tmp/


The contents of all the folders shown in /opt were owned by me and the apache group. This make sense because I originally created these locally, as me and then moved them to /opt as root. The folders in the /proc were owned and grouped as apache, so I am asuming that they have something to do with the running apache server.

-rws--x--- 1 root apache 11604 Oct 23 02:07 /usr/sbin/suexec2

was a little puzzling, but
equery belongs /usr/sbin/suexec2
shows that it belongs to apache.

/var/tmp had tons of stuff owned by me and grouped apache, but since it was tmp, I figured it didn't matter.

Help, I'm still stuck!
_________________
"I thought she'd steal my heart, instead she stole my kidney,
and now its for sale, on the black market in Sydney" - Better Abraham
Back to top
View user's profile Send private message
gnac
Guru
Guru


Joined: 30 Jun 2003
Posts: 302
Location: Columbia River Gorge

PostPosted: Thu Jan 04, 2007 6:59 am    Post subject: Reply with quote

another thing, I found this in

Code:

# tail /var/log/auth.log
Jan  3 22:55:12 valhalla su[6102]: Successful su for test2 by root
Jan  3 22:55:12 valhalla su[6102]: + pts/1 root:test2
Jan  3 22:55:12 valhalla su(pam_unix)[6102]: session opened for user test2 by (uid=0)


Even though I was never able to access /bin/bash.

I then added user test2 to the apache group and I noticde this "shadow" group?

Code:
Jan  3 22:56:05 valhalla usermod[6109]: add `test2' to group `apache'
Jan  3 22:56:05 valhalla usermod[6109]: add `test2' to shadow group `apache'


I was then able to log in and out test 2

Code:
Jan  3 22:56:06 valhalla su[6110]: Successful su for test2 by root
Jan  3 22:56:06 valhalla su[6110]: + pts/1 root:test2
Jan  3 22:56:06 valhalla su(pam_unix)[6110]: session opened for user test2 by (uid=0)
Jan  3 22:56:10 valhalla su(pam_unix)[6110]: session closed for user test2

_________________
"I thought she'd steal my heart, instead she stole my kidney,
and now its for sale, on the black market in Sydney" - Better Abraham
Back to top
View user's profile Send private message
erik258
Advocate
Advocate


Joined: 12 Apr 2005
Posts: 2650
Location: Twin Cities, Minnesota, USA

PostPosted: Thu Jan 04, 2007 6:17 pm    Post subject: Reply with quote

Quote:
-rws--x--- 1 root apache 11604 Oct 23 02:07 /usr/sbin/suexec2

If your methods of finding apache grouped files is accurate (and I think it is), this must be the problem. Note that it's setuid to root and only anyone in the apache group can execute it.

The reason I mention scripting is that I thought it was funny that so much on your system would have an owner of apache. Especially having setuid root programs that only the apache group can run seems suspicious. You might consider checking up on security a bit. Any foolishly easy passwords to guess? Open ssh to the outside world gets lots of ssh-bot traffic so it really is important that SSH be allowed only for users with secure passwords and some use for external ssh login.
_________________
Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit!
Back to top
View user's profile Send private message
gnac
Guru
Guru


Joined: 30 Jun 2003
Posts: 302
Location: Columbia River Gorge

PostPosted: Thu Jan 04, 2007 7:13 pm    Post subject: Reply with quote

Well I somehow fixed the problem. Unfortunately I can't pinpoint exactly what the problem was. but heres what I did:

First I ran the driver uninstall script. This did not fix the problem.

Then, I deleted the directory that contained the driver installation that I had untarred as myuser:apache.

As root, I untarred the driver into a new directory with root:root permissions.

I then reinstalled the driver. Whatever file or folder it had fubared the permissions of was then restored with the correct root:root permissions.

At this point, I was able to log in as non apache grouped users.

I then uninstalled the driver.

As far as I can make out, the only "global files" that the driver installs are in /etc and /usr/lib and I thought I had manually fixed the permissions on those folders.

Code:
Linux $ ll install/noarch/at_root/ -R
noarch/at_root/:
total 0
drwxr-xr-x 3 root root 72 May 24  2006 etc

noarch/at_root/etc:
total 0
drwxr-xr-x 2 root root 80 May 24  2006 sane.d

noarch/at_root/etc/sane.d:
total 12K
-r--r--r-- 1 me me 12K May 24  2006 smfp.conf


Code:
Linux $ ll install/i386/at_root/ -R
i386/at_root/:
total 0
drwxr-xr-x 3 root root 72 Jul 11 05:26 usr

i386/at_root/usr:
total 0
drwxr-xr-x 4 root root 128 Jul 11 05:26 lib

i386/at_root/usr/lib:
total 60K
drwxr-xr-x 4 root root  96 Jun 15  2006 cups
-rwxr-xr-x 1 me  me  60K Jul 11 05:16 libmfp.so.1.0.1
drwxr-xr-x 2 root root  88 Jul 11 05:26 sane

i386/at_root/usr/lib/cups:
total 0
drwxr-xr-x 2 root root  72 Jul 11 05:26 backend
drwxr-xr-x 2 root root 192 Jun 15  2006 filter

i386/at_root/usr/lib/cups/backend:
total 20K
-rwxr-xr-x 1 me me 17K Jul 11 05:16 mfp

i386/at_root/usr/lib/cups/filter:
total 120K
-rwxr-xr-x 1 me me 6.5K Jun 15  2006 pscms
-rwxr-xr-x 1 me me  15K Jun 15  2006 rastertosamsungpcl
-rwxr-xr-x 1 me me  36K Jun 15  2006 rastertosamsungspl
-rwxr-xr-x 1 me me  60K Jun 15  2006 rastertosamsungsplc

i386/at_root/usr/lib/sane:
total 160K
-rwxr-xr-x 1 me me 159K Jul 11 05:16 libsane-smfp.so.1.0.1


It also installs a bunch of files into /opt/Samsung, but that should have any effect on user logins, right?

Anyway, I'm closing this issue, and I might but together a howto for anyone who wants to install the proprietary drivers for Samsung printers so they don't go through the same hell I did.

Thanks all.
_________________
"I thought she'd steal my heart, instead she stole my kidney,
and now its for sale, on the black market in Sydney" - Better Abraham
Back to top
View user's profile Send private message
lupestro
n00b
n00b


Joined: 06 Mar 2004
Posts: 48

PostPosted: Sat Mar 03, 2007 3:19 pm    Post subject: Also having odd experiences after installing Samsung driver Reply with quote

Hi,

I'm also finding that programs that worked before are not working after installing the Samsung printer driver. I think it replaces some files in lib and it looked like their replacements were built with an older ABI. In particular it said something scary about libc.so.6 and a couple of other key libraries when it first installed, and now Kooka crashes so now I can't even scan on Linux and print from my Mac. This leaves me with two questions (well, three, three questions):

  • Did you happen to notice which files it replaces in lib? I can figure it out myself, I think, but it would save me some time, since you've already been through the exercise.
  • Is there anything I can do to get my original versions back assuming that Samsung cavalierly overwrote them?
  • Is there any tool that can tell the protocol version/ABI of an installed .so file? I don't want to "fix" something that ain't broke.

<sigh>I'm really getting to hate the way these guys do business in the Linux world. But this printer gives really nice output from my Mac. <rant>I don't understand why the printer makers can't open up their drivers. They have nothing to lose and everything to gain. Bugs will get fixed and features improved without them spending money, simply because their users want them fixed. </rant> Once I get out of this mess, maybe I'll pass this printer along to my wife and son who only run Windows and move up if there's a color laser I can access in my lab with full features from Windows, Mac, _and_ all flavors of Linux. (Hey, if its got der blinkenlights, I gotta know what I'd do to program it. :-)) Is the HP color laser any better in this respect?</sigh>

[OK, that was four questions, wasn't it?]

Ralph
Back to top
View user's profile Send private message
lupestro
n00b
n00b


Joined: 06 Mar 2004
Posts: 48

PostPosted: Sat Mar 03, 2007 4:09 pm    Post subject: I dug a little and found the following ... Reply with quote

I recalled one message and then found the following possible global substitutions in the install.sh:
Code:
libstdc++.so.5 (gcc 3.0.x .. 3.3.x) not found, install ...
libtiff.so.3 not found, install ...

Here's what I have on my system:
Code:
openocean Linux # ls -l /usr/lib/libstd*
-r-xr-xr-x 1 root root 407565 Feb 11  2003 /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so
lrwxrwxrwx 1 root root     31 Feb 17 10:39 /usr/lib/libstdc++-libc6.2-2.so.3 -> libstdc++-3-libc6.2-2-2.10.0.so
lrwxrwxrwx 1 root root     18 Feb 17 10:38 /usr/lib/libstdc++.so.5 -> libstdc++.so.5.0.5
-rwxr-xr-x 1 root root 965717 Apr  5  2004 /usr/lib/libstdc++.so.5.0.5

openocean Linux # ls -l /usr/lib/libtiff*
-rw-r--r-- 1 root root 461970 Oct  5 07:20 /usr/lib/libtiff.a
-rw-r--r-- 1 root root    972 Oct  5 07:20 /usr/lib/libtiff.la
lrwxrwxrwx 1 root root     16 Oct  5 07:20 /usr/lib/libtiff.so -> libtiff.so.3.8.2
lrwxrwxrwx 1 root root     16 Oct  5 07:20 /usr/lib/libtiff.so.3 -> libtiff.so.3.8.2
-rwxr-xr-x 1 root root 345112 Oct  5 07:20 /usr/lib/libtiff.so.3.8.2


The date on the tiff stuff doesn't look way out of line - the last change for 3.8.2-r2 was in early August and I think the rebuild of everything for the new ABI was in around October.

However the libstdc++ install looks really scary. I've got gcc 4.1 installed on my system and this just isn't going to play. February 17th is about the right time for when I tried to do the work. Seeing a library with an Apr 5 2004 date is really scary. Does anything else on my system link with libstdc++.so? How would I find out? (If they don't, then Samsung would only be shooting themselves in the foot, which I wouldn't feel so bad about.)

I could have sworn it said something about libc.so.6 when I installed, but I don't see anything in the install.sh and if they did anything with that, given the difference in ABIs, I should be in a lot deeper trouble, no? Here's what I've got:
Code:
openocean ~ # ls -l /usr/lib/libc.so
-rwxr-xr-x 1 root root 238 Feb  7 20:25 /usr/lib/libc.so
openocean ~ # ls -l /lib/libc*.so*
-rwxr-xr-x 1 root root 1237792 Feb  7 20:25 /lib/libc-2.5.so
lrwxrwxrwx 1 root root      11 Feb  7 20:25 /lib/libc.so.6 -> libc-2.5.so


The only other thing that I saw in their stuff was the following. This looks harmless, since it is in their own space, it doesn't get anywhere near /usr/qt/3/lib and most of my KDE stuff isn't having troubles ...
Code:
( cd /opt/${VENDOR}/mfp/lib${PLSFX} && \
   mv libqt-mt.so.3 libqt-mt.so.3.0.5 ; \
   ln -s -f libqt-mt.so.3.0.5 libqt-mt.so.3.0 ; \
   ln -s -f libqt-mt.so.3.0.5 libqt-mt.so.3   ; \
   ln -s -f libqt-mt.so.3.0.5 libqt-mt.so     ; \

I know they screw with the Sane stuff, which is of obvious interest to Kooka, but I don't know how yet. I guess that would be another place I could look.

At this point, I could use any help or advice I can get...

Ralph
Back to top
View user's profile Send private message
lupestro
n00b
n00b


Joined: 06 Mar 2004
Posts: 48

PostPosted: Sat Mar 03, 2007 4:27 pm    Post subject: I got it! Reply with quote

Following up on the SANE stuff, I found the following in /usr/lib:
Code:
lrwxrwxrwx 1 root       root     17 Feb 17 11:49 libsane-smfp.so -> libsane-smfp.so.1
lrwxrwxrwx 1 root       root     21 Feb 17 11:49 libsane-smfp.so.1 -> libsane-smfp.so.1.0.1
-rwxr-xr-x 1 deepriver$ 1001 161812 Jul 11  2006 libsane-smfp.so.1.0.1

...along with a whole lot of other SANE stuff built back on October 6th when I did the rebuild for the 4.1 ABI. Since we know they're using pre-4.1 libraries and this is the date the Samsung stuff got installed, I started betting that's the culprit.

So I looked in /etc/sane.d/dll.conf and found the entry for smfp at the bottom. I commented it out and now Kooka is happy to come up. Immediate problem solved.

The only remaining problem I can see is that I can't use their stuff to configure my printer - it detects my network printer, but when it pulls up the list of drivers, it comes up empty. Given the difference in ABIs (3.x->4.1), I'm not surprised. And their filters should give CUPS a headache, no? Maybe not, as I think the printing model is just chaining them as separate processes through pipes. However, I'll send a message to their tech support. I want my drivers - I think... or a better printer manufacturer... If I can't get one, I'll find the other. :-) Wotdahell, its only money...

Ralph
Back to top
View user's profile Send private message
gnac
Guru
Guru


Joined: 30 Jun 2003
Posts: 302
Location: Columbia River Gorge

PostPosted: Sat Mar 03, 2007 5:16 pm    Post subject: Reply with quote

I ended up manually installing the drivers with the use of a real basic script.

First, I made a directory, /opt/SamsungPrinter/ and then copied the files from the install CD that I knew I needed. Since the CLP-300 has no scanner, there is no need for the scanner libraries.
Here are the files that I determined I needed (note usr/ in this context is /opt/SamsungPrinter/usr ):
Code:
valhalla SamsungPrinter # ll usr/ -R
usr/:
total 0
drwxr-xr-x 3 root root 104 Feb 27 03:12 lib
drwxr-xr-x 3 root root  72 Jan  5 12:13 share

usr/lib:
total 60K
drwxr-xr-x 4 root root  96 Jan  5 12:12 cups
-rwxr-xr-x 1 root root 60K Jan  5 00:02 libmfp.so.1.0.1

usr/lib/cups:
total 0
drwxr-xr-x 2 root root  72 Feb 27 03:11 backend
drwxr-xr-x 2 root root 192 Feb 27 03:12 filter

usr/lib/cups/backend:
total 20K
-rwxr-xr-x 1 root root 17K Jan  5 00:03 mfp

usr/lib/cups/filter:
total 120K
-rwxr-xr-x 1 root root 6.5K Jan  5 00:04 pscms
-rwxr-xr-x 1 root root  15K Jan  5 00:04 rastertosamsungpcl
-rwxr-xr-x 1 root root  36K Jan  5 00:04 rastertosamsungspl
-rwxr-xr-x 1 root root  60K Jan  5 00:04 rastertosamsungsplc

usr/share/cups/model:
total 16K
-r--r--r-- 1 root root 13K Jan  5 00:00 CLP-300splc.ppd


Then I wrote a real basic script to "install" the Samsung printer driver into /usr, where installation is the creation of logical links to the /opt/SamsungPrinter directory that will not overwrite existing files.

Code:
ln -s $(pwd)/usr/lib/libmfp.so.1.0.1 /usr/lib/libmfp.so.1.0.1
ln -s $(pwd)/usr/lib/cups/backend/mfp /usr/lib/cups/backend/mfp
ln -s $(pwd)/usr/lib/cups/filter/* /usr/lib/cups/filter/
ln -s $(pwd)/usr/share/cups/model/CLP-300splc.ppd /usr/share/cups/model/CLP-300splc.ppd


of course this MUST BE RUN from the /opt/SamsungPrinter folder, or wherever you keep your Samsung files. The full script below allows you to test, install, and uninstall.

Code:
#install script written by gnac
# must be run from the /opt/SamsungPrinter directory
# examples, if this script is called install.sh then run:
#   "./install.sh"  will print out the files in the SamsungPrinter directory that will be installed,
#                      and attempt to list existing files in the /usr directory.
#                      If you have not installed the drivers, this step ***SHOULD PRODUCE ERRORS*** when it
#                      attempts to list the files that are in the /usr directory. 
#                      If it doesn't, the destination files already exist. 
#                      This is actually ***WHAT YOU WANT*** if you have not installed the driver yet.
#   "./install.sh install"  will create the logical links and then display the source and destination files. 
#                                This should only produce errors if the desitnation files already exist.
#   "./install.sh uninstall"  will delete the "installed" logical links and then display the source and destination files. 
#                                   The destination files should be gone, so expect errors.

if [ "$1" = "install" ]; then
    echo installing
    ln -s $(pwd)/usr/lib/libmfp.so.1.0.1 /usr/lib/libmfp.so.1.0.1
    ln -s $(pwd)/usr/lib/cups/backend/mfp /usr/lib/cups/backend/mfp
    ln -s $(pwd)/usr/lib/cups/filter/* /usr/lib/cups/filter/
    ln -s $(pwd)/usr/share/cups/model/CLP-300splc.ppd /usr/share/cups/model/CLP-300splc.ppd

fi

if [ "$1" = "uninstall" ]; then
    echo uninstalling
   rm /usr/lib/libmfp.so.1.0.1
   rm /usr/lib/cups/backend/mfp
   rm /usr/lib/cups/filter/pscms
   rm /usr/lib/cups/filter/rastertosamsungpcl
   rm /usr/lib/cups/filter/rastertosamsungspl
   rm /usr/lib/cups/filter/rastertosamsungsplc
   rm /usr/share/cups/model/CLP-300splc.ppd
fi


echo checking install source files
ls -l $(pwd)/usr/lib/libmfp.so.1.0.1
ls -l $(pwd)/usr/lib/cups/backend/mfp
ls -l $(pwd)/usr/lib/cups/filter/*
ls -l $(pwd)/usr/share/cups/model/CLP-300splc.ppd
echo checking destination files
ls -l /usr/lib/libmfp.so.1.0.1
ls -l /usr/lib/cups/backend/mfp
ls -l /usr/lib/cups/filter/pscms
ls -l /usr/lib/cups/filter/rastertosamsungpcl
ls -l /usr/lib/cups/filter/rastertosamsungspl
ls -l /usr/lib/cups/filter/rastertosamsungsplc
ls -l /usr/share/cups/model/CLP-300splc.ppd


Again, this script is the essence of quick and dirty, but it does provide some protection against overwriting existing files since ln -s will not create a file that exists. However if you run uninstall, it will remove all the "destination" files regardless of whether it was you who installed them or not.

*Use with caution*.

As to the existing libraries it overwrites, I can't help much with that other than to concur that the samsung installer did install some libc file that borked the rest of the system. I think the linuxprinting.org http://openprinting.org/show_printer.cgi?recnum=Samsung-CLP-510 site for these printers had some comment about that as well. Something you could do, is perform an ls -R on all of the "root" folders in the samsung driver installation tarball (i.e. i386/at_root/usr, narch/at_root/usr) to several files (ls -R i386/at_root/usr > i386root.txt), then diff the files with the output of "ls -R /usr", looking for matches.

Files that match are probably safe to delete, but I would run a revdep-rebuild afterward to make sure.

As for recommended printers. If I had to do it all again I would get the HP 2605 or a variant (2605N). This printer is postscript compliant so the open drivers work perfectly, and the HP provided drivers can be emerge and also work perfectly. It costs a little more than the clp300, and is a little larger, but the time saved to have a working printer would be well worth it. Be careful though, other similarly named printers (eg HP 2600N) don't work so well and don't use the open postscript language.

Linuxprinting.org is your friend.
_________________
"I thought she'd steal my heart, instead she stole my kidney,
and now its for sale, on the black market in Sydney" - Better Abraham
Back to top
View user's profile Send private message
gnac
Guru
Guru


Joined: 30 Jun 2003
Posts: 302
Location: Columbia River Gorge

PostPosted: Mon Mar 05, 2007 5:04 pm    Post subject: re libstc Reply with quote

I checked to see what libstdc++ I had, because I had the same with samsung installing its own libstdc++. problem.

Code:
$ ll /usr/lib/libstd*
total 721K
lrwxrwxrwx 1 root root   18 Oct 23 03:52 libstdc++.so.5 -> libstdc++.so.5.0.6
-rwxr-xr-x 1 root root 720K Oct 23 03:52 libstdc++.so.5.0.6
dwh@valhalla ~ $


I think the libstdc++-3-libc6.2-2-2.10.0.so stuff you have was installed by samsung. I was able to delete it without any ill effects to operation. You can make sure that this file exists on the install "cd" but I'd feel pretty safe deleting it. (*BACK IT UP FIRST*) Also, make sure to run revdep-rebuild afterward.
_________________
"I thought she'd steal my heart, instead she stole my kidney,
and now its for sale, on the black market in Sydney" - Better Abraham
Back to top
View user's profile Send private message
lupestro
n00b
n00b


Joined: 06 Mar 2004
Posts: 48

PostPosted: Sat Mar 10, 2007 3:55 pm    Post subject: Long live Splix! Reply with quote

It appears that the Linuxprinting community has an alternative to the vendor-supplied drivers!
I uninstalled the Samsung drivers, deleted my printer, and...

Long live Splix! :D

Now I just gotta look at replacing my yellow toner cartridge :-( (Oh, well!) I understand from a friend with the CLP-500N that when the printer gets to the point of replacing cartridges the fun really begins due to a couple of hardware bugs... It may never quite get it that the new one is in place. We shall see...

Lupestro
Back to top
View user's profile Send private message
gnac
Guru
Guru


Joined: 30 Jun 2003
Posts: 302
Location: Columbia River Gorge

PostPosted: Sat Mar 10, 2007 6:06 pm    Post subject: Reply with quote

Which Samsung do you have? I have the CLP-300 and the splix website says its not supported at all yet.
_________________
"I thought she'd steal my heart, instead she stole my kidney,
and now its for sale, on the black market in Sydney" - Better Abraham
Back to top
View user's profile Send private message
mdatab
n00b
n00b


Joined: 30 Mar 2005
Posts: 10

PostPosted: Tue Jul 03, 2007 10:05 am    Post subject: Reply with quote

gnac wrote:
Which Samsung do you have? I have the CLP-300 and the splix website says its not supported at all yet.

This is an interesting question for me, too, since I'm planning to buy such a color laserprinter.
Back to top
View user's profile Send private message
gnac
Guru
Guru


Joined: 30 Jun 2003
Posts: 302
Location: Columbia River Gorge

PostPosted: Tue Jul 03, 2007 3:16 pm    Post subject: Reply with quote

If you get the CLP-300 I would highly suggest that you DO NOT INSTALL the samsung provided drivers.

Splix also does not support the CLP printers yet, but ***foo2qpdl does***. I recently installed the drivers at

http://foo2qpdl.rkkda.com/

This driver is basically the most recent packaging of the foo2zjs that is in portage. It contains all the old stuff that zjs did, plus all the stuff for qpdl printers (Samsung) as well. I was hoping to write an modify the foo2zjs ebuild for it that I could submit to bugzilla for the foo2zjs package, but I haven't gotten around to it. If you are feeling energetic, you could take the foo2zjs ebuild and modify it to download the latest package from the website, and use the latest printers available in it. I would put the modified package in an overlay so it doesn't get slaughtered on your next sync. The gentoo website has good data for creating an overlay, and between reading the ebuild and the instructions on the foo2qpdl website, it should be easy enough to upgrade. Having said all that, I just installed the driver per the website and its worked great.


So far this driver has been working fine, however, in retrospect I wish I had bough a ps native printer like some of the HP models. I forget which one it was, but there was an hp color laser printer model for just a little more than the CLP-300, that is fully supported on linux without any d*cking around.

good luck
_________________
"I thought she'd steal my heart, instead she stole my kidney,
and now its for sale, on the black market in Sydney" - Better Abraham
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum