Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
01-27-2014, 04:11 AM
|
#1
|
Member
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591
Rep:
|
permissions to use "at" command ?
hello!
i try to use "at" command from my unpriviliged user account on my slackware 14.0, and he says "you do not have permissions to use at command"...?
what permissions i must have?
as i understand, at jobs has launched with that user account, who create that "at" job?
|
|
|
01-27-2014, 04:19 AM
|
#2
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Have you checked the /etc/at.allow and or /etc/at.deny files?
Have a look at the at manual page for details.
|
|
|
01-27-2014, 04:31 AM
|
#3
|
Member
Registered: Mar 2008
Location: Malta
Distribution: Slackware and Zenwalk
Posts: 575
Rep: 
|
I have Slack14.1 here but I do not think much changed since 14.0
No special permissions are required.
Will you list the output of:
Quote:
# type at
# ls -l $( which at )
# mount
|
|
|
|
01-27-2014, 04:44 AM
|
#4
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
@ChrisAbela: To my knowledge if /etc/at.allow exists then users that need at need to be present. If /etc/at.allow does not exist and the specific user isn't mentioned in /etc/at.deny then no special permissions are needed.
|
|
|
01-27-2014, 04:54 AM
|
#5
|
Member
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591
Original Poster
Rep:
|
i look at /etc/
and found there are only at.deny file from at.*
i check, my user not in that file
but when i try
someuser@host:/etc$ at now + 5 minutes -f /home/boinc/BOINC/boinc 2&1> /home/boinc/boinc_at_log
i get an:
[1] 26171
someuser@host:/etc$ You do not have permission to use at.
?
i also have disabled password for that user ( * in password field in /etc/shadow) - it can cause that effect?
|
|
|
01-27-2014, 05:55 AM
|
#6
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
Disabling the password goes against the nature of unix/linux systems.
It is possible to do it but this is mentioned in the shadow manual page:
Quote:
This field may be empty, in which case no passwords are required to
authenticate as the specified login name. However, some
applications which read the /etc/shadow file may decide not to
permit any access at all if the password field is empty.
|
BTW: can you post the output of the commands asked for by ChrisAbela?
|
|
|
01-27-2014, 06:25 AM
|
#7
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
I just tried to recreate your problem and am not able to create an account that doesn't need a password by using a * in the /etc/shadow password field (not able to log in locally).
You can use, as root passwd -d user_name to empty the password field (no pwd required at login). If I do this then at works normally on the 14.1 box I tried it on.
I'm starting to wonder what else you changed that might have influenced login behaviour and possibly access to certain commands.
|
|
|
01-27-2014, 06:44 AM
|
#8
|
Member
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591
Original Poster
Rep:
|
boinc@host:/root$ type at
at is /usr/bin/at
boinc@host:/root$ ls -l $( which at)
-rwxr-xr-x 1 daemon daemon 50456 Jul 28 2010 /usr/bin/at
boinc@host:/root$ mount
/dev/md1 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
/dev/md3 on /smb_raid type ext4 (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sdc1 on /SAMBA/Transfer type ext4 (rw,noexec,noatime)
/dev/sdc2 on /SAMBA/Video type ext4 (rw,noexec,noatime)
boinc@host:/root$
i also change user boinc passwd to nothing ( from root passwd boinc - enter- enter-enter, then su boinc, and try again at command - and get the same "You do not have permission to use at.
" ....
|
|
|
01-27-2014, 06:57 AM
|
#9
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
The permissions for the at command (compared to 14.1) seems to be wrong. On my side it shows (a default install):
-rwsr-sr-x daemon daemon 50456 Jul 28 2010 /usr/bin/at
There might be multiple issue's concerning your set up. I would start by giving users a proper password and setting the proper permissions. If the at command works when doing that you can change back the things changed one at the time and see what's causing the permission denied.
|
|
|
01-27-2014, 07:18 AM
|
#10
|
Member
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591
Original Poster
Rep:
|
thanks for help. i change permissions for "at", but nothing changes in my situation. looks like i must be install my system from scratch someday for get all working good. inthat system some time ago i get an accidentally chmod a+rwX for root filesystem. i try to fix that files permissions in various way, but looks like not all things get fixed in that way...
|
|
|
01-28-2014, 04:30 AM
|
#12
|
Member
Registered: Mar 2008
Location: Malta
Distribution: Slackware and Zenwalk
Posts: 575
Rep: 
|
Perhaps you can try to re-install at:
|
|
|
01-28-2014, 06:30 AM
|
#13
|
Member
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591
Original Poster
Rep:
|
Quote:
Originally Posted by ChrisAbela
Perhaps you can try to re-install at:
|
done, no changes. i do not have another 14.0 x64 system, but on my 13.37 x32 at from users work without problems....dont understand true problem root, but ok, i instead of at command make a script for boinc run...
|
|
|
01-28-2014, 09:32 AM
|
#14
|
Member
Registered: Aug 2004
Location: MD
Distribution: Slackware
Posts: 114
Rep:
|
Looking at: http://www.linuxquestions.org/questi...ailure-710254/
Quote:
Originally Posted by teqteq
Now, the solution I found is to find your "at.deny" and/or "at.allow" files (in my case, SUSE 10, it is in "/etc/"), and make sure these files have "read" permission for all users. I don't know why this isn't the default, but it wasn't for me. Once I did this then the error message "You do not have permission to use at" disappeared! I guess it wasn't able to check who didn't have permission in "at.deny" when I ran it as my owner user, so it just denied everyone!
|
Is it possible you have some strange permissions on at.deny as well?
|
|
1 members found this post helpful.
|
01-29-2014, 01:41 AM
|
#15
|
Member
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591
Original Poster
Rep:
|
2NeoMetal:
thank you, you right!
see at /etc/at.deny, and he have 640 permissions - read & write by owner ( root/root), and read by group.
i add read by others permission ( 644 in final), and at command start to work from user.
thank you again....
|
|
|
All times are GMT -5. The time now is 11:23 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|