Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

SSHD and permissions denied

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> SSHD and permissions denied Page: [1]
Login
Message << Older Topic   Newer Topic >>
SSHD and permissions denied - Apr. 19, '04, 7:01:37 PM   
yankovic

 

Posts: 4
Joined: Apr. 19, '04,
Status: offline
I'm ssh-ing into a Windows machine that's not on a domain...

When I ssh into the machine, I'm listed correctly as user1, but I only have perms as the +SYSTEM group, even when I'm an owner and an administrator... any reason why?
Post #: 1
RE: SSHD and permissions denied - Apr. 19, '04, 7:14:04 PM   
steveh

 

Posts: 195
Joined: Jan. 23, '04,
Status: offline
What are you getting permissions denied doing, the login using some tool or just changin dir...?

(in reply to yankovic)
Post #: 2
RE: SSHD and permissions denied - Apr. 19, '04, 7:40:51 PM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Something is odd. "+System" is not a group it's a user.

Who's sshd are you running ?

(in reply to steveh)
Post #: 3
RE: SSHD and permissions denied - Apr. 19, '04, 8:53:46 PM   
yankovic

 

Posts: 4
Joined: Apr. 19, '04,
Status: offline
I'm running the one off of interopsystems, downloaded two days ago.

It seems it's not just the group, but that i'm not being recognized as the same user as when i log in at the console. changing the read/write on the group byte allows me to make these changes. Have i configured SSHD incorrectly?

(in reply to Rodney)
Post #: 4
RE: SSHD and permissions denied - Apr. 20, '04, 12:33:32 AM   
markfunk

 

Posts: 670
Joined: Mar. 31, '03,
Status: offline
When you ssh into Windows, can you give us some details as to the specifics or your identity ?
Like, what do the following commands return:

id
uname -a
pdomain

And perhaps any explicit examples of what you are doing
and why you think there's a problem.

thanks

(in reply to yankovic)
Post #: 5
RE: SSHD and permissions denied - Apr. 20, '04, 12:39:06 AM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Sounds like it isn't running correctly.
You installed as which user ?
How did you start sshd (did you reboot or type it at the command line) ?
If you do 'ps -Alw | grep ssh', what is the output ?

(in reply to markfunk)
Post #: 6
RE: SSHD and permissions denied - Apr. 20, '04, 11:36:54 AM   
yankovic

 

Posts: 4
Joined: Apr. 19, '04,
Status: offline
hmph... in the style of all software (and other) problems, now that I'm trying to repro it, I can't. I'll post here if/when I'm able to find an example of something not working.

(in reply to Rodney)
Post #: 7
RE: SSHD and permissions denied - Apr. 20, '04, 11:38:53 AM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
I guess that's why they call then daemons
Glad it's cleared up.

(in reply to yankovic)
Post #: 8
RE: SSHD and permissions denied - Apr. 20, '04, 4:14:07 PM   
yankovic

 

Posts: 4
Joined: Apr. 19, '04,
Status: offline
heh, I spoke too soon. Ok, here we go... i'm ssh'd into my machine and am trying to move some mp3s into a directory i just created (called temp).

13:08 myuseraccount@mycomputername [/<4>Albums/blink-182/Blink 182 [Bonus Track]] > mkdir temp
13:08 myuseraccount@mycomputername [/<4>Albums/blink-182/Blink 182 [Bonus Track]] > mv * temp
13:09 myuseraccount@mycomputername [/<3>Music/Albums/blink-182] > id
uid=197611(myuseraccount) gid=197121(None) groups=197121(None), 65792(+Everyone), 131616(+Administrators), 131617(+Users), 4095(CurrentSession), 66048(+LOCAL), 66820(+INTERACTIVE), 66827(+Authenticated Users)
13:10 myuseraccount@mycomputername [/<3>Music/Albums/blink-182] > uname -a
Interix mycomputername 3.5 SP-8.0.1969.1 x86 AMD Athlon/Duron
13:10 myuseraccount@mycomputername [/<3>Music/Albums/blink-182] > pdomain
MYCOMPUTERNAME
13:10 myuseraccount@mycomputername [/<3>Music/Albums/blink-182] > ls -l
total 2
drwx------+ 1 myuseraccount None 0 Apr 20 13:08 Blink 182 [Bonus Track]
13:10 myuseraccount@mycomputername [/<3>Music/Albums/blink-182] > cd Blink\ 182\ \[Bonus\ Track]/
13:11 myuseraccount@mycomputername [/<4>Albums/blink-182/Blink 182 [Bonus Track]] > ls -l
total 150430
-rwx------+ 1 myuseraccount None 6733642 Apr 12 07:04 01 Feeling This.mp3
drwxr-xr-x 1 myuseraccount None 0 Apr 20 13:08 temp
13:11 myuseraccount@mycomputername [/<4>Albums/blink-182/Blink 182 [Bonus Track]] > mv 01\ Feeling\ This.mp3 temp
mv: rename 01 Feeling This.mp3 to temp/01 Feeling This.mp3: Permission denied
13:11 myuseraccount@mycomputername [/<4>Albums/blink-182/Blink 182 [Bonus Track]] >


< Message edited by yankovic -- Apr. 20, '04, 4:15:07 PM >
Post #: 9
RE: SSHD and permissions denied - Apr. 20, '04, 5:07:49 PM   
Rodney

 

Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
The secret is...
If you look at the perms you'll see that there is a "+" at the end of it.
This indicates that there are more control entries associated with this
file/directory than typically can be expressed in the standard Unix form.
(The code producing the "+" BTW is standard BSD code, it's just most BSD
systems haven't done ACL's yet).

This indicates that the file was placed there by Win32 (all those spaces
in the filename kinda give that away too). What you need to do is clobber
the permissions on the files/directories like this. The additional ACE (or
ACE's) in the ACL may have a "deny" or something else to prevent you doing
what you want.

So, for example, do a "chmod 755" on the directory and said file.
Then try it again.

If you want to see the full ACL info do "cacls filename".

(in reply to yankovic)
Post #: 10
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> SFU / Interix - Getting Started >> SSHD and permissions denied Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.047