You are right, sorry about that, in the meanwhile I google it a bit and I've 
finally solved the problem

I don't know why and how the myusergroup in /etc/group was like:
myusergroup:x:0000:

I changed it in myusergroup:x:1000:
I add a user to it and now that user can login via ssh and call su!!!

thanks a million to all of you. I wouldn't be able to solve it otherwise...

Davide

On 12 Oct 2011, at 17:13, <[email protected]> wrote:

> Davide,
> 
> Your questions are a lot more "general Linux" than "Voyage".  My suggestion 
> would be to pick up some Linux system administrator books at your local 
> bookstore.
> 
> The command you're going to want for changing user attribute is "usermod" and 
> the one for groups is "groupmod".  Note that you can specify how you want 
> users created by adding more options to the "useradd" command.
> --
> Julie Haugh
> Senior Design Engineer
> greenHouse Computers, LLC // jfh at greenhousepc.com // greenHousePC on Skype
> 
> 
> -------- Original Message --------
> Subject: Re: [Voyage-linux] setgid: Operation not permitted
> From: "[email protected]" <[email protected]>
> Date: Wed, October 12, 2011 10:58 am
> To: voyage linux Mailing List <[email protected]>
> 
> Brilliant, works!
> 
> now i have
> 
> # ls -l /bin/su /etc/group* /etc/passwd*
> -rwsr-xr-x 1 root 1000 29152 Feb 15 2011 /bin/su
> -rw-r--r-- 1 1000 1000 543 Oct 10 15:29 /etc/group
> -rw------- 1 root root 558 Oct 10 14:48 /etc/group-
> -rw-r--r-- 1 1000 1000 905 Oct 10 15:29 /etc/passwd
> -rw------- 1 root root 948 Oct 10 15:11 /etc/passwd-
> 
> I suppose that I have to repeat the same command for passwd and group, 
> haven't I...
> 
> At that stage... how should I create a user that can call su without messing 
> it up again? what is not clear to me it's that every time that i create a 
> user that one goes to a new group and I cannot change the usergroup in root...
> 
> 
> Thanks a million
> 
> Davide
> 
> 
> 
> On 12 Oct 2011, at 16:51, <[email protected]> wrote:
> 
> > Davide,
> > 
> > Cool!
> > 
> > Login as "root" and execute the commands
> > 
> > chown root /bin/su
> > chmod 4755 /bin/su
> > 
> > This will give you "su" back.
> > --
> > Julie Haugh
> > Senior Design Engineer
> > greenHouse Computers, LLC // jfh at greenhousepc.com // greenHousePC on 
> > Skype
> > 
> > 
> > -------- Original Message --------
> > Subject: Re: [Voyage-linux] setgid: Operation not permitted
> > From: "[email protected]" <[email protected]>
> > Date: Wed, October 12, 2011 10:24 am
> > To: voyage linux Mailing List <[email protected]>
> > 
> > Yes, I have root access to the machine.
> > 
> > Problems started when I tried to disable ssh root login. I created a new 
> > user, with it came a new group. Then I logged via ssh as the new user and I 
> > tried su but from that user I cannot access to su becaouse of permissions.
> > 
> > I can still login as root...
> > 
> > Thanks
> > 
> > Davide
> > 
> > 
> > 
> > On 12 Oct 2011, at 13:20, <[email protected]> <[email protected]> 
> > wrote:
> > 
> > > Davide,
> > > 
> > > Are you able to login as root? If you can't login at all as root, you're 
> > > out of luck. The only "under 20 minute" fix is to remove the CF or 
> > > whatever Voyage is installed on, mount it on that Linux machine, use the 
> > > "chown" command to change the ownership on the "/bin/su" command, the put 
> > > it back and restart.
> > > 
> > > But if you're, as you put it, a "wannabe" (don't be so hard on your -- 
> > > real wannabes don't get as far as you have), the best solution is to 
> > > create a new installation image on another CF or disk drive, and put that 
> > > in.
> > > 
> > > And for the rest of y'all, I do sell fully assembled and installed 
> > > ALIX.2C and 3D boxes. Shipping within the United States and Canada is at 
> > > pretty reasonable rates.
> > > --
> > > Julie Haugh
> > > Senior Design Engineer
> > > greenHouse Computers, LLC // jfh at greenhousepc.com // greenHousePC on 
> > > Skype
> > > 
> > > 
> > > -------- Original Message --------
> > > Subject: Re: [Voyage-linux] setgid: Operation not permitted
> > > From: "[email protected]" <[email protected]>
> > > Date: Wed, October 12, 2011 5:38 am
> > > To: [email protected]
> > > 
> > > Unfortunately I cannot reinstall voyage since that machine is running 
> > > some tests for my WSN and I cannot stop it for more than 20 min
> > > 
> > > Adrian, I installed voyage using the help script so I think that I did 
> > > the mess when I started creating users and groups to differentiate access 
> > > trough ssh. I think I'm the only one to blame, I'm newbe and, in this 
> > > case a wannabe...
> > > 
> > > Anyway I want to fix the problem so I need a better understanding of the 
> > > matter in case. Can you please suggest me any wiki or tutorial where I 
> > > can learn how to manage access permission?
> > > 
> > > Many thanks
> > > 
> > > 
> > > Davide 
> > > 
> > 
> > 
> > _______________________________________________
> > Voyage-linux mailing list
> > [email protected]
> > http://list.voyage.hk/mailman/listinfo/voyage-linux
> 
> 
> _______________________________________________
> Voyage-linux mailing list
> [email protected]
> http://list.voyage.hk/mailman/listinfo/voyage-linux


_______________________________________________
Voyage-linux mailing list
[email protected]
http://list.voyage.hk/mailman/listinfo/voyage-linux

Reply via email to