SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I also can't get the following commands to work for user.
Code:
hdparm -i hda
-bash: hdparm: command not found
lspci
-bash: lspci: command not found
ifconfig
-bash: ifconfig: command not found
I'm almost sure I've used these before as user. I saw in another post on this forum (not slackware) that these commands are for root only. If that's true then let me know.
You could alter yours with sudo chmod g+s /usr/bin/slocate
The other commands (/usr/sbin/hdparm /sbin/lspci and /sbin/ifconfig) can be run by non-root users, but settings cannot be changed except with root access (sudo, su or login as root). /usr/sbin and /sbin won't be on your path as a non-root user, just use the full path to the command.
bigdawg@Heavnersnetwork:~$ sudo chgrp slocate /usr/bin/slocate
Password:
bigdawg@Heavnersnetwork:~$ ls -l /usr/bin/slocate
-rwxr-xr-x 1 root slocate 26652 2004-05-29 23:52 /usr/bin/slocate*
bigdawg@Heavnersnetwork:~$ slocate slocate
warning: slocate: could not open database: /var/lib/slocate/slocate.db: Permission denied
bigdawg@Heavnersnetwork:~$ ls -ld /var/lib/slocate
drwxr-xr-x 2 root slocate 112 2008-02-15 07:27 /var/lib/slocate/
bigdawg@Heavnersnetwork:~$ sudo ls -l /var/lib/slocate
total 7271
-rw-r----- 1 root slocate 3720271 2008-02-15 07:27 slocate.db
-rw-r----- 1 root root 3714733 2008-02-13 09:08 slocate.db.old
Do you see anything wrong with my permissions/groups.?? There isn't supposed to be anything set (i.e. SUID) is there. I did just notice that the permissions are different on my /usr/bin/slocate. It's no longer set. I'll give the chmod command another try.
It's now working... I had it working yesterday but when I booted up today it wasn't working. Is there anything that could be changing the permissions inadvertantly or otherwise??
Thanks for you help gilead!!
Last edited by Rollo69; 02-15-2008 at 08:57 PM.
Reason: adding new code
It's now working... I had it working yesterday but when I booted up today it wasn't working. Is there anything that could be changing the permissions inadvertantly or otherwise??
There shouldn't be - I ran the following on my system to look for scripts, config files, etc. that affect slocate and didn't get anything that changed permissions (nothing relevant was returned):
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.