LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-27-2014, 04:11 AM   #1
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Rep: Reputation: 73
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?
 
Old 01-27-2014, 04:19 AM   #2
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Have you checked the /etc/at.allow and or /etc/at.deny files?

Have a look at the at manual page for details.
 
Old 01-27-2014, 04:31 AM   #3
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware and Zenwalk
Posts: 575

Rep: Reputation: 155Reputation: 155
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
 
Old 01-27-2014, 04:44 AM   #4
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
@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.
 
Old 01-27-2014, 04:54 AM   #5
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Original Poster
Rep: Reputation: 73
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?
 
Old 01-27-2014, 05:55 AM   #6
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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?
 
Old 01-27-2014, 06:25 AM   #7
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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.
 
Old 01-27-2014, 06:44 AM   #8
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Original Poster
Rep: Reputation: 73
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.
" ....
 
Old 01-27-2014, 06:57 AM   #9
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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.
 
Old 01-27-2014, 07:18 AM   #10
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Original Poster
Rep: Reputation: 73
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...
 
Old 01-27-2014, 03:32 PM   #11
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 2,192

Rep: Reputation: 276Reputation: 276Reputation: 276
I had a similar problem that I 'solved' by rewriting at and using my own version. I discussed it at http://www.linuxquestions.org/questi....php?p=4800751
 
Old 01-28-2014, 04:30 AM   #12
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware and Zenwalk
Posts: 575

Rep: Reputation: 155Reputation: 155
Perhaps you can try to re-install at:

Quote:
# slackpkg reinstall at
 
Old 01-28-2014, 06:30 AM   #13
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Original Poster
Rep: Reputation: 73
Quote:
Originally Posted by ChrisAbela View Post
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...
 
Old 01-28-2014, 09:32 AM   #14
NeoMetal
Member
 
Registered: Aug 2004
Location: MD
Distribution: Slackware
Posts: 114

Rep: Reputation: 24
Looking at: http://www.linuxquestions.org/questi...ailure-710254/

Quote:
Originally Posted by teqteq View Post
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.
Old 01-29-2014, 01:41 AM   #15
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Original Poster
Rep: Reputation: 73
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....
 
  


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
Why I keep getting "Cannot run program "dir": error=13, Permissions denied" Maryam_Persian Other *NIX 2 05-20-2013 03:01 PM
[SOLVED] du says "cannot read directory" and "permission denied", but I have rwx permissions mrtwice Linux - Software 14 04-21-2010 12:38 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
"cp -p" fails with "cp: setting permissions for `/home/svbld/t': Invalid argument" mkhesin Red Hat 1 02-28-2007 12:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:23 PM.

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