LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-23-2016, 09:57 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Post See Windows permissions on a folder via Linux.


Hello.
Can I see the users and groups permissions that set by Windows Server on a folder? I mean is something like "https://i-technet.sec.s-msft.com/dynimg/IC46402.gif"

Thank you.
 
Old 11-23-2016, 10:01 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
That isn't a folder. That is a URL to a GIF file.
 
Old 11-23-2016, 10:02 AM   #3
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by szboardstretcher View Post
That isn't a folder. That is a URL to a GIF file.
Open the file and you can see "Security" tab under Windows OS.
 
Old 11-23-2016, 11:26 AM   #4
af7567
Member
 
Registered: Nov 2012
Posts: 295

Rep: Reputation: 106Reputation: 106
Quote:
Originally Posted by hack3rcon View Post
Hello.
Can I see the users and groups permissions that set by Windows Server on a folder? I mean is something like "https://i-technet.sec.s-msft.com/dynimg/IC46402.gif"
You could try the showacls option of smbclient. First use smbclient to connect to the share, then turn on showacls by running that command, then ls "Folder name" to see the ACL.

Code:
$ smbclient //server/share
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.4.5]
smb: \> showacls
smb: \> ls 2016
FILENAME:2016
MODE:D
SIZE:0
MTIME:Sat Nov  5 14:43:01 2016
revision: 1
type: 0x9004: SEC_DESC_DACL_PRESENT SEC_DESC_DACL_PROTECTED SEC_DESC_SELF_RELATIVE 
DACL
	ACL	Num ACEs:	3	revision:	2
	---
	ACE
		type: ACCESS ALLOWED (0) flags: 0x00 
		Specific bits: 0x1ff
		Permissions: 0x1f01ff: SYNCHRONIZE_ACCESS WRITE_OWNER_ACCESS WRITE_DAC_ACCESS READ_CONTROL_ACCESS DELETE_ACCESS 
		SID: S-1-22-1-0

	ACE
		type: ACCESS ALLOWED (0) flags: 0x00 
		Specific bits: 0xa9
		Permissions: 0x1200a9: SYNCHRONIZE_ACCESS READ_CONTROL_ACCESS 
		SID: S-1-22-2-0

	ACE
		type: ACCESS ALLOWED (0) flags: 0x00 
		Specific bits: 0xa9
		Permissions: 0x1200a9: SYNCHRONIZE_ACCESS READ_CONTROL_ACCESS 
		SID: S-1-1-0

	Owner SID:	S-1-22-1-0
	Group SID:	S-1-22-2-0

		234460408 blocks of size 1024. 154326896 blocks available
 
Old 11-23-2016, 12:42 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,672
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
To clarify:

In the original post, we're presented with a URL that references a file somewhere. This would be handled by a web server, which would use this URL to locate some file-resource and serve its contents to you. The web server probably will not tell you anything about that file.

On the other hand, "Samba" is a Linux file-sharing client that is largely compatible with Microsoft's standard "SMB" sharing protocol. As such, it is able to tell you the same things about the file that a similarly-authorized Windows user would be able to learn about a shared file on some remote server.

And, yes, the Samba suite can also participate on a Windows network as a server. Like all such servers, it will attempt to map "its filesystem world" to "a Windows equivalent view," with more, or less, thoroughness.
 
Old 12-02-2016, 08:18 AM   #6
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 601

Rep: Reputation: 172Reputation: 172
Are you asking us to tell you how to access files that you shouldn't have access to??
 
Old 12-03-2016, 12:59 PM   #7
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
I like to see that which users have which permission on a folder in windows share, but via linux.
 
Old 12-03-2016, 01:22 PM   #8
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Reading this because I'm intrigued.
If you open the picture linked to in the original post then it's a Windows permissions dialogue box -- not the file which the OP wishes to access but a representation if what hack3rcon would like to see under Linux...
 
  


Reply



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
Need Perl script to get files from Linux Samba share folder to Windows folder kowsi Programming 1 10-10-2012 05:57 PM
opening folder Windows Folder in Red Hat Linux TEXT MODE janbaztaimur Linux - Newbie 8 05-17-2011 04:34 PM
Samba permissions when creating a new folder through Windows jackaninny Linux - Software 7 04-09-2010 08:36 AM
Change Linux Folder Permissions using Windows 2003 itguyla Linux - Newbie 0 01-07-2008 02:38 PM
can't change permissions for windows folder nikoz Linux - General 1 06-21-2006 08:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:13 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