I scheduled a task every 5 minutes in my crontab.
The task is well-scheduled by activating the cron log in rsyslog and checked that it executes as planned:
- Right user
- Right command
Sample:
Dec 23 06:40:01 computer /USR/SBIN/CRON[26422]: (myuser) CMD (bash /home/myuser/myscript.sh &>/home/myuser/myscript.log)
I even tried:
Dec 23 06:40:01 computer /USR/SBIN/CRON[26422]: (myuser)
I added a user using useradd
useradd -g upperdevs myuser
But when I do an id check I didn't see the upperdevs group.
id myuser
#uid=1000(myuser) gid=1000(myuser) groups=1000(myuser),27(sudo)
Probably this was the issue why I can't write to certain_dir, by doing ls -l:
drwxrwxr-x 2 root upperdevs 4096 Sep 8 13:35 certain_dir
Anything I'm doing wrong?
I added a user using useradd
useradd -g upperdevs myuser
But when I do an id check I didn't see the upperdevs group.
id myuser
#uid=1000(myuser) gid=1000(myuser) groups=1000(myuser),27(sudo)
Probably this was the issue why I can't write to certain_dir, by doing ls -l:
drwxrwxr-x 2 root upperdevs 4096 Sep 8 13:35 certain_dir
Anything I'm doing wrong?
I have added the user "test" in myuser group [usermod -a -G test myuser]. But if try to execute or try to cd to datadir as "test" user gives the Permission denied error. datadir is having the following privilege [770 the user "test" is belongs to myuser group still it gives the Permission denied error].
i pressed M in top command try to get a memory sort for the processes,
5892 myuser 15 0 88428 86M 12520 S 0.0 4.2 0:01 0 java
5893 myuser 15 0 88428 86M 12520 S 0.0 4.2 6:47 0 java
5894 myuser 15 0 88428 86M 12520 S 0.0 4.2 0:00 0 java
5895 myuser 15 0 88428 86M 12520 S 0.0 4.2 0:00 0 java
5896 myuser 15 0 88428 86M 12520 S 0.0
hello,
I have a ubuntu 12.04 (Linux SAMBA 3.2.0-29-generic # 46-Ubuntu SMP Fri Jul 27 5:03:23 p.m. UTC 2012 x86_64 x86_64 x86_64 GNU / Linux).
I installed samba, I have shared common is accessible.
I'm trying to setup a ftp account for a user that has read/write access to one folder: /items/myuser
I've set up the account with username 'myuser' in Linux with the adduser command.
I want to be able to backup and restore my home directory of a remote account.
The command I use are:
Backup
ssh myuser@myuser.server.com "tar jcf - ." > backup.tar.bz2
Restore
cat backup.tar.bz2 | ssh myuser@myuser.server.com "tar jxf - ."
I'd like to be sure that all the files are restored or none, even if the server gets rebooted in the middle of a restore.
Any way to achieve what I
Can you describe how to give privileges to the user in normal use of your folder / home / user
To be able to properly use Git and other applications of Python
I've done something like chown-R myuser / home / myuser
But there were some problems with Git commits....
like link unavailabe and permission denied
thanks....