Linux (ubuntu) Permission confusion
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
1
down vote
favorite
Please, take a look at the following CMD
[thunder@ip-xxx-xx-xx-xx /]$ id
uid=504(thunder) gid=504(thunder) groups=504(thunder)
[thunder@ip-xxx-xx-xx-xx /]$ grep developers /etc/group
developers:x:505:501,502,503,504
[thunder@ip-xxx-xx-xx-xx /]$ groups
thunder
My question is why doesn't developers show up in my groups
command
Below you can see
[thunder@ip-xxx-xx-xx-xx opt]$ ls -l
total 12
drwxr-xr-x 5 root root 4096 Mar 7 06:46 aws
-rwxr-xr-x 1 root root 63 Mar 23 22:37 permissions.sh
drwxrwxr-x 7 root developers 4096 Mar 26 19:30 web
The "web" folder has developers as its group,
but still I cannot perform this inside the "web" folder
[thunder@ip-xxx-xx-xx-xx opt]$ cd web
[thunder@ip-xxx-xx-xx-xx web]$ touch a
touch: cannot touch âÂÂaâÂÂ: Permission denied
Note: I tried logging out and logging back in using the logout
and exit
command, but still no success.
permissions users groups
add a comment |Â
up vote
1
down vote
favorite
Please, take a look at the following CMD
[thunder@ip-xxx-xx-xx-xx /]$ id
uid=504(thunder) gid=504(thunder) groups=504(thunder)
[thunder@ip-xxx-xx-xx-xx /]$ grep developers /etc/group
developers:x:505:501,502,503,504
[thunder@ip-xxx-xx-xx-xx /]$ groups
thunder
My question is why doesn't developers show up in my groups
command
Below you can see
[thunder@ip-xxx-xx-xx-xx opt]$ ls -l
total 12
drwxr-xr-x 5 root root 4096 Mar 7 06:46 aws
-rwxr-xr-x 1 root root 63 Mar 23 22:37 permissions.sh
drwxrwxr-x 7 root developers 4096 Mar 26 19:30 web
The "web" folder has developers as its group,
but still I cannot perform this inside the "web" folder
[thunder@ip-xxx-xx-xx-xx opt]$ cd web
[thunder@ip-xxx-xx-xx-xx web]$ touch a
touch: cannot touch âÂÂaâÂÂ: Permission denied
Note: I tried logging out and logging back in using the logout
and exit
command, but still no success.
permissions users groups
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Please, take a look at the following CMD
[thunder@ip-xxx-xx-xx-xx /]$ id
uid=504(thunder) gid=504(thunder) groups=504(thunder)
[thunder@ip-xxx-xx-xx-xx /]$ grep developers /etc/group
developers:x:505:501,502,503,504
[thunder@ip-xxx-xx-xx-xx /]$ groups
thunder
My question is why doesn't developers show up in my groups
command
Below you can see
[thunder@ip-xxx-xx-xx-xx opt]$ ls -l
total 12
drwxr-xr-x 5 root root 4096 Mar 7 06:46 aws
-rwxr-xr-x 1 root root 63 Mar 23 22:37 permissions.sh
drwxrwxr-x 7 root developers 4096 Mar 26 19:30 web
The "web" folder has developers as its group,
but still I cannot perform this inside the "web" folder
[thunder@ip-xxx-xx-xx-xx opt]$ cd web
[thunder@ip-xxx-xx-xx-xx web]$ touch a
touch: cannot touch âÂÂaâÂÂ: Permission denied
Note: I tried logging out and logging back in using the logout
and exit
command, but still no success.
permissions users groups
Please, take a look at the following CMD
[thunder@ip-xxx-xx-xx-xx /]$ id
uid=504(thunder) gid=504(thunder) groups=504(thunder)
[thunder@ip-xxx-xx-xx-xx /]$ grep developers /etc/group
developers:x:505:501,502,503,504
[thunder@ip-xxx-xx-xx-xx /]$ groups
thunder
My question is why doesn't developers show up in my groups
command
Below you can see
[thunder@ip-xxx-xx-xx-xx opt]$ ls -l
total 12
drwxr-xr-x 5 root root 4096 Mar 7 06:46 aws
-rwxr-xr-x 1 root root 63 Mar 23 22:37 permissions.sh
drwxrwxr-x 7 root developers 4096 Mar 26 19:30 web
The "web" folder has developers as its group,
but still I cannot perform this inside the "web" folder
[thunder@ip-xxx-xx-xx-xx opt]$ cd web
[thunder@ip-xxx-xx-xx-xx web]$ touch a
touch: cannot touch âÂÂaâÂÂ: Permission denied
Note: I tried logging out and logging back in using the logout
and exit
command, but still no success.
permissions users groups
permissions users groups
asked Mar 28 at 21:25
ThunderRoid
1063
1063
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
man 5 group
states that the forth section of each line is (emphasis added):
a list of the usernames that are members of this group, separated by commas.
Having numeric user IDs in this list doesn't seem to work.
I think you have to use something like
sudo gpasswd -a $USER developers
or
sudo usermod $USER -aG developers
to actually add yourself to the developers
group.
After that, logout and re-login, then use
id -Gn
to get a list of your groups.
but to runsudo gpasswd
i will need root access which i don't have
â ThunderRoid
Mar 28 at 21:53
@ThunderRoid You have to ask the administrator then... because you are not really in developers group.
â Ravexina
Mar 28 at 21:56
butgrep developers /etc/group
shows that i am, because it has my uid, as u can see in op
â ThunderRoid
Mar 28 at 21:57
1
There should be a list of the "usernames" not "user id", I tested it on my local machine... uid does not works. I also quoted a line from/etc/group
manual page: " a list of the usernames that are members of this group, separated by commas."
â Ravexina
Mar 28 at 21:59
1
I edited your answer to emphasize that one has to put the user names into/etc/groups
, not the UIDs. At least for me, that wasn't too clear until I saw your comment above. Btw, another (more common?) command to add a USER to a GROUP issudo adduser USER GROUP
.
â Byte Commander
Mar 28 at 22:57
 |Â
show 4 more comments
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
man 5 group
states that the forth section of each line is (emphasis added):
a list of the usernames that are members of this group, separated by commas.
Having numeric user IDs in this list doesn't seem to work.
I think you have to use something like
sudo gpasswd -a $USER developers
or
sudo usermod $USER -aG developers
to actually add yourself to the developers
group.
After that, logout and re-login, then use
id -Gn
to get a list of your groups.
but to runsudo gpasswd
i will need root access which i don't have
â ThunderRoid
Mar 28 at 21:53
@ThunderRoid You have to ask the administrator then... because you are not really in developers group.
â Ravexina
Mar 28 at 21:56
butgrep developers /etc/group
shows that i am, because it has my uid, as u can see in op
â ThunderRoid
Mar 28 at 21:57
1
There should be a list of the "usernames" not "user id", I tested it on my local machine... uid does not works. I also quoted a line from/etc/group
manual page: " a list of the usernames that are members of this group, separated by commas."
â Ravexina
Mar 28 at 21:59
1
I edited your answer to emphasize that one has to put the user names into/etc/groups
, not the UIDs. At least for me, that wasn't too clear until I saw your comment above. Btw, another (more common?) command to add a USER to a GROUP issudo adduser USER GROUP
.
â Byte Commander
Mar 28 at 22:57
 |Â
show 4 more comments
up vote
1
down vote
man 5 group
states that the forth section of each line is (emphasis added):
a list of the usernames that are members of this group, separated by commas.
Having numeric user IDs in this list doesn't seem to work.
I think you have to use something like
sudo gpasswd -a $USER developers
or
sudo usermod $USER -aG developers
to actually add yourself to the developers
group.
After that, logout and re-login, then use
id -Gn
to get a list of your groups.
but to runsudo gpasswd
i will need root access which i don't have
â ThunderRoid
Mar 28 at 21:53
@ThunderRoid You have to ask the administrator then... because you are not really in developers group.
â Ravexina
Mar 28 at 21:56
butgrep developers /etc/group
shows that i am, because it has my uid, as u can see in op
â ThunderRoid
Mar 28 at 21:57
1
There should be a list of the "usernames" not "user id", I tested it on my local machine... uid does not works. I also quoted a line from/etc/group
manual page: " a list of the usernames that are members of this group, separated by commas."
â Ravexina
Mar 28 at 21:59
1
I edited your answer to emphasize that one has to put the user names into/etc/groups
, not the UIDs. At least for me, that wasn't too clear until I saw your comment above. Btw, another (more common?) command to add a USER to a GROUP issudo adduser USER GROUP
.
â Byte Commander
Mar 28 at 22:57
 |Â
show 4 more comments
up vote
1
down vote
up vote
1
down vote
man 5 group
states that the forth section of each line is (emphasis added):
a list of the usernames that are members of this group, separated by commas.
Having numeric user IDs in this list doesn't seem to work.
I think you have to use something like
sudo gpasswd -a $USER developers
or
sudo usermod $USER -aG developers
to actually add yourself to the developers
group.
After that, logout and re-login, then use
id -Gn
to get a list of your groups.
man 5 group
states that the forth section of each line is (emphasis added):
a list of the usernames that are members of this group, separated by commas.
Having numeric user IDs in this list doesn't seem to work.
I think you have to use something like
sudo gpasswd -a $USER developers
or
sudo usermod $USER -aG developers
to actually add yourself to the developers
group.
After that, logout and re-login, then use
id -Gn
to get a list of your groups.
edited Mar 28 at 22:55
![](https://i.stack.imgur.com/m8DYH.jpg?s=32&g=1)
![](https://i.stack.imgur.com/m8DYH.jpg?s=32&g=1)
Byte Commander
59.5k26159267
59.5k26159267
answered Mar 28 at 21:41
![](https://i.stack.imgur.com/MvDpH.png?s=32&g=1)
![](https://i.stack.imgur.com/MvDpH.png?s=32&g=1)
Ravexina
28k146595
28k146595
but to runsudo gpasswd
i will need root access which i don't have
â ThunderRoid
Mar 28 at 21:53
@ThunderRoid You have to ask the administrator then... because you are not really in developers group.
â Ravexina
Mar 28 at 21:56
butgrep developers /etc/group
shows that i am, because it has my uid, as u can see in op
â ThunderRoid
Mar 28 at 21:57
1
There should be a list of the "usernames" not "user id", I tested it on my local machine... uid does not works. I also quoted a line from/etc/group
manual page: " a list of the usernames that are members of this group, separated by commas."
â Ravexina
Mar 28 at 21:59
1
I edited your answer to emphasize that one has to put the user names into/etc/groups
, not the UIDs. At least for me, that wasn't too clear until I saw your comment above. Btw, another (more common?) command to add a USER to a GROUP issudo adduser USER GROUP
.
â Byte Commander
Mar 28 at 22:57
 |Â
show 4 more comments
but to runsudo gpasswd
i will need root access which i don't have
â ThunderRoid
Mar 28 at 21:53
@ThunderRoid You have to ask the administrator then... because you are not really in developers group.
â Ravexina
Mar 28 at 21:56
butgrep developers /etc/group
shows that i am, because it has my uid, as u can see in op
â ThunderRoid
Mar 28 at 21:57
1
There should be a list of the "usernames" not "user id", I tested it on my local machine... uid does not works. I also quoted a line from/etc/group
manual page: " a list of the usernames that are members of this group, separated by commas."
â Ravexina
Mar 28 at 21:59
1
I edited your answer to emphasize that one has to put the user names into/etc/groups
, not the UIDs. At least for me, that wasn't too clear until I saw your comment above. Btw, another (more common?) command to add a USER to a GROUP issudo adduser USER GROUP
.
â Byte Commander
Mar 28 at 22:57
but to run
sudo gpasswd
i will need root access which i don't haveâ ThunderRoid
Mar 28 at 21:53
but to run
sudo gpasswd
i will need root access which i don't haveâ ThunderRoid
Mar 28 at 21:53
@ThunderRoid You have to ask the administrator then... because you are not really in developers group.
â Ravexina
Mar 28 at 21:56
@ThunderRoid You have to ask the administrator then... because you are not really in developers group.
â Ravexina
Mar 28 at 21:56
but
grep developers /etc/group
shows that i am, because it has my uid, as u can see in opâ ThunderRoid
Mar 28 at 21:57
but
grep developers /etc/group
shows that i am, because it has my uid, as u can see in opâ ThunderRoid
Mar 28 at 21:57
1
1
There should be a list of the "usernames" not "user id", I tested it on my local machine... uid does not works. I also quoted a line from
/etc/group
manual page: " a list of the usernames that are members of this group, separated by commas."â Ravexina
Mar 28 at 21:59
There should be a list of the "usernames" not "user id", I tested it on my local machine... uid does not works. I also quoted a line from
/etc/group
manual page: " a list of the usernames that are members of this group, separated by commas."â Ravexina
Mar 28 at 21:59
1
1
I edited your answer to emphasize that one has to put the user names into
/etc/groups
, not the UIDs. At least for me, that wasn't too clear until I saw your comment above. Btw, another (more common?) command to add a USER to a GROUP is sudo adduser USER GROUP
.â Byte Commander
Mar 28 at 22:57
I edited your answer to emphasize that one has to put the user names into
/etc/groups
, not the UIDs. At least for me, that wasn't too clear until I saw your comment above. Btw, another (more common?) command to add a USER to a GROUP is sudo adduser USER GROUP
.â Byte Commander
Mar 28 at 22:57
 |Â
show 4 more comments
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1020103%2flinux-ubuntu-permission-confusion%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password