Hi I am trying to provide access to a folder of photos. The website is Unix based so I can change permissions. I am using WISE-FTP 8 as my FTP program. I created a directory on the server and intend to upload about 40 photos to it. I uploaded one photo as a test and received a 403 Forbidden. The directory is set to public read.

Member Avatar
Member Avatar
+0 forum 16

Kind of stuck here. I'm porting over a section of code from Java to C#, and I'm having an issue with method permissions constructors. Early in my code, i have this class.. public class TCard { int suit; int rank; } and later i've got this method, which throws a bunch of errors. Identifiers highlighted with the double asterixes throw the "is innaccessible due to its protection level" error. I've tried rebuilding my solution, and this hasn't worked. public void loadDeck(TCard[] deck) { int count; for (count = 1; count <= 52; count++) { deck[count] = new TCard(); deck[count].**suit** = …

Member Avatar
Member Avatar
+0 forum 6

Hello I want to change the permissions of a file but this error is output : "can not change permissions to ... read-only filesystem". How can change the permissions to my file ?

Member Avatar
Member Avatar
+0 forum 1

Allow others access files in your home directory by granting them "search" permissions. Create a publicly searchable, but not listable, subdirectory to your home directory, ~/pub. Create two subdirectories of ~/pub, both searchable and listable to only the members of the groups music and wrestle, respectively: ~/pub/music and ~/pub/wrestle. Note that you will need to consider the group owners of the directories, as well as permissions. Create the files ~/pub/music/lyrics and ~/pub/wrestle/plan. The files should be readable and writable by members of the music and wrestle groups, respectively. That's the assignment. I know how to use chmod but I'm not …

Member Avatar
Member Avatar
+0 forum 1

I have a PHPBB forum and just ran into a serious issue after my host switched me from a shared server to a VPS, and they can't figure out how to fix it for me. On all of my posts that contained inline attached pictures, the pictures no longer display, instead if I get a hyperlink to the image. Instead of hyperlinks, the visitor is supposed to see actual pictures. When I hover over the hyperlink, I see the following http://www.mydomain.com/forum/download/file.php?id=58 If I paste it directly into the browser, I get the following error message generated by file.php "Unable to …

Member Avatar
Member Avatar
+0 forum 10

I had a interal disk that wouldn't show in the finder at all but was showing as mounted on disk utility. I could get to the disk through a file alias so I know the disk was there and working. I tried numious posts including this one (http://www.daniweb.com/hardware-and-software/apple/mac-os-x/threads/94420/hard-drive-not-visible-mac-osx) with not luck. I figured it must be a permissions problem, so I ran the termal command to show all hidden files (without the brackets): (defaults write com.apple.Finder AppleShowAllFiles YES) (killall Finder) And Behold the HD was there as a hiddden file. Then I found another termail command that makes hidden files …

Member Avatar
Member Avatar
+1 forum 1

Hi all, I have spent a long time on this problem and trawled all the forums. Much of the discussion is old. I have two Windows 8 computers, set up for file sharing, but the process is not exactly even, perhaps becuase the desktop is a private computer and the laptop is a work one, or more likely because there is something wrong with the permissions on the desktop. That would be easy to tease out if someone knew about it. I have looked at all the links, and tried numerous solutions, though. On the laptop, I can open the …

Member Avatar
Member Avatar
+0 forum 1

I am trying to set ntfs permissions for a user folder such that the user has Read and Execute permissions for This Folder Only but has Full Control for All Subfolders and Files. I am using this code, which is not doing what I need: public void AddDirectorySecurity(string dirName, string userName) { DirectoryInfo dInfo = new DirectoryInfo(dirName); DirectorySecurity dSecurity = dInfo.GetAccessControl(); dSecurity.AddAccessRule(new FileSystemAccessRule(userName, FileSystemRights.ReadAndExecute, InheritanceFlags.ObjectInherit, PropagationFlags.InheritOnly, AccessControlType.Allow)); dInfo.SetAccessControl(dSecurity); dSecurity.AddAccessRule(new FileSystemAccessRule(userName, FileSystemRights.FullControl, InheritanceFlags.None, PropagationFlags.None, AccessControlType.Allow)); dInfo.SetAccessControl(dSecurity); } Can someone please offer some advice on what I need to change to get this working correctly?

Member Avatar
Member Avatar
+0 forum 1

Hi Dw I'm working with permissions in my program I want it to protect the chosen file by permissions and now what I want is how can I make these permissions unchanged by a user? Or if not possible because I don't want even the administrator to change these permission for the security of the file or contents it will be holding, or maybe after I protected the file with the permission and it a user or a program want to modify or open the folder the system not just only my program request an access password which will be …

Member Avatar
Member Avatar
+0 forum 7

Hi, When logged into my Amazon EC2 instances as user ec2-user, I cannot edit/delete files in my web root folder. All files are owned by apache:apache, and I have added ec2-user to the apache group. What am I missing? To sum up: [ec2-user@xxx ~]$ groups ec2-user ec2-user : ec2-user wheel apache [ec2-user@xxx ~]$ id ec2-user uid=222(ec2-user) gid=500(ec2-user) groups=500(ec2-user),10(wheel),48(apache) [ec2-user@xxx ~]$ ls -la /var/www/html total 176 drwxrwxr-x 6 apache apache 4096 Oct 24 00:44 . drwxr-xr-x 3 apache apache 4096 Oct 23 22:51 .. -rwxrwxr-x 1 apache apache 395 Jan 8 2012 index.php If I try to edit or remove index.php …

Member Avatar
Member Avatar
+0 forum 2

Hi. I have a noobish UNIX question. I have a password-protected section of my website for testing (named 'sandbox') and I'm trying to write output to a plain text file in that directory. But I'm getting the following error due to permissions settings. `Warning: file_put_contents(testdb.txt) [function.file-put-contents]: failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/sandbox/dbtest1.php on line 5` I'm sure it's something simple, but what could I be overlooking?

Member Avatar
Member Avatar
+0 forum 5

Hello. I'm trying to set up a private section of my website for testing and I'm having a problem where my .htaccess / .htpasswd protection always rejects my password. I've set permissions to 604 on both files as recommended by my web host and both files reside in the same subfolder. At first I tried setting the password in the .htpasswd file from OS X's Terminal using the htaccess command. When that didn't work I hashed it using an online tool to generate the hash. It hashed differently but still doesn't work. I'm uploading via Fetch (FTP). If anyone has …

Member Avatar
Member Avatar
+0 forum 8

well how can i stop accessing a folder by using in vb in the page load(request.browser......etc) i used this before but i forgot how i m not talking about authentication but if u have other way or method to do that it would be better

Member Avatar
Member Avatar
+0 forum 2

Hello, I am sharing my webserver with a few people (it's my server) and I am trying to create some sort of an admin panel for them. It has to be able to change Apache VirtualHosts and reload Apache. Now I can make the config-changing PHP code, but there are 2 Apache-related problems. * I want only my script / all scripts from my VirtualHost to be able to write to a specific directory. So I don't want other people to be able to write a simple PHP script to bypass my config script screw around with Apache config/ * …

Member Avatar
Member Avatar
+0 forum 5

Hello, I am sharing my webserver with a few people and I am trying to create some sort of an admin panel for them. It has to be able to change Apache VirtualHosts and reload Apache. Now I can make the config-changing PHP code, but there are 2 Apache-related problems. * I want only my script / all scripts from my VirtualHost to be able to write to a specific directory. So I don't want other people to be able to write a simple PHP script to bypass my config script screw around with Apache config/ * I want only …

Member Avatar
Member Avatar
+0 forum 10

Hi Everyone, In Linux as a root i need to create a user account with 700 permissions as its home directory permissions, so that user after logging in should not be able to change his/her home directory permissions , he/she should be can change other files/directories inside home directory. So Please tell me is there any way i could create a user like this. Thanks in Advance Thanks Srikanth M.

Member Avatar
Member Avatar
+0 forum 8

Hii I have a work network and all computers have the same workgroup name, but the workgroup is a part of whole bulding network. I wanted to restrict access to on of the computers to only employees at the office and I enabled guest account on that computer an set a password to it. after that all users who want to open that computer must provide the username of "Guest" and its password. everything went fine... but later computers with windows 7 installed always had the problem saying that username or password is wrong (while the password entered is the …

Member Avatar
Member Avatar
+0 forum 2

I have a program that I wrote that creates a database in SQL Server called States_02 as a sysadmin user. Later on I want to grant SELECT permissions to that database to another user, web I always get an error that it cannot find States_02 or I don't have permissions to do it. My Code: Dim Conn As New OleDbConnection(ConnStr) Try Conn.Open() Catch ex As Exception Me.lblStatus.Text = "Unable to connect to Server." & vbCrLf & ex.Message Me.lblStatus.ForeColor = Color.Red Exit Sub End Try Dim DbName As String = Me.txtStates.Text Dim SQL As String = "GRANT SELECT ON " & …

Member Avatar
Member Avatar
+0 forum 3

HI i am trying to convert a doc file to a pdf file. please see my conversion code below [CODE] private string m_SourceFilePath; private string m_DestFilePath; public bool DoConversion() { bool returnValue; Word.WdExportFormat exportFormat = Microsoft.Office.Interop.Word.WdExportFormat.wdExportFormatPDF; object paramMissing = Type.Missing; Word.ApplicationClass wordApplication = new Word.ApplicationClass(); Word.Document wordDocument = null; try { object paramSourceDocPath = m_SourceFilePath; string paramExportFilePath = m_DestFilePath; Word.WdExportFormat paramExportFormat = exportFormat; bool paramOpenAfterExport = false; Word.WdExportOptimizeFor paramExportOptimizeFor = Word.WdExportOptimizeFor.wdExportOptimizeForPrint; Word.WdExportRange paramExportRange = Word.WdExportRange.wdExportAllDocument; int paramStartPage = 0; int paramEndPage = 0; Word.WdExportItem paramExportItem = Word.WdExportItem.wdExportDocumentContent; bool paramIncludeDocProps = true; bool paramKeepIRM = true; Word.WdExportCreateBookmarks paramCreateBookmarks = Word.WdExportCreateBookmarks.wdExportCreateWordBookmarks; bool …

Member Avatar
+0 forum 0

In writing a logging program for a SDK Engine, I have come across some problems. The logging function works fine when called with test programs, but when I run it in a full test of the SDK Engine, no file is ever created. I added some testing lines to make sure the function is getting called, and it is. The directory was properly created the first time I ran the program, but the file never is. Strange thing is, the file [ICODE]failbit[/ICODE] flag is never set, and the [ICODE]is_open()[/ICODE] function returns true, but the file does not exist. Here is …

Member Avatar
Member Avatar
+0 forum 2

Hi there, A website I'm admin for has a serious security issue. Everytime I make changes to a php script, I chmod -R 777 the var/www directory to make the script work. And if I change this to 775, the photo upload feature on the website doesn't work. So my questions are: - What are the real security implications of chmod 777 the entire var/www/ - How do I set the permissions for var/www/ so I can edit/upload scripts without constantly rewriting the permissions - How can the public upload photos to the server without the directory being 777 (on …

Member Avatar
Member Avatar
+0 forum 1

Installed Wordpress Multisite on Windows server 2008R2 and seems to be working fine EXCEPT: the update feature in WP fails or anytime when it tries to install something for you. I set up a valid / working FTP account as it sometimes asks for this, but that does not work either. I have looked several places and think it may be permissions related, which are more complex on Windoes than Linux, but have not found a definitive answer. Can any one point me in the right direction? Thanks, Rolf

Member Avatar
Member Avatar
+0 forum 3

Hello, As a Mac user and minor maintenance man on XP machines for friends and family, pardon my ignorance on this Windows 7 issue. I bought my father an Iomega portable 320GB HDD for Father's Day For his new HP machine with Windows 7 Home Premium 64 bit. He wants to deny access to all but himself. Easy for me on a Mac. Been searching and all I can find is command line stuff that is well beyond his capabilities and I won't be here to take this into my own hands after a week. Nor do I want to …

Member Avatar
Member Avatar
+0 forum 2

I am using Microsoft Visual Studio 08 version on a computer where I do not have admin privileges. After building my project, I want to put the .exe into the Visual Studio 08's VC folder in order to run dumpbin from the command prompt, but it won't let me copy and paste nor will it let me drag and drop my executable. It gives me this error message "Access is denied. Make sure the disk is not full or write-protected and that the file is currently not in use." So how am I supposed to use dumpbin if I can't …

Member Avatar
Member Avatar
+0 forum 3

Hi there, Is it possible to lock down permissions to files on a network file server so that people who amend them can only save them back to their original network location? By this I mean can saving them to their local C:\ or sending them on via email after being modified be restricted in any way? Thanks.

Member Avatar
Member Avatar
+0 forum 5

Hello, I have a very strange error. I recently installed a test environment on my laptop with IIS7/PHP5/MySQL on Vista Home Premium. When I tried to install phpMyAdmin I found that it somehow failed silently, in particular, config file could not get written even though no error was shown. To simplify the situation I set permission as Full Control for Everybody on wwwroot. As I investigated further I found that for some reason when a stream was open the actual file was not written on the disk. For example, the following code [CODE] <?php $fout=fopen('Test.html','w'); echo($fout);echo("<br>fprintf = "); echo(fprintf($fout,'Hello world'));echo("<br>"); …

Member Avatar
+0 forum 0

My original plan was to pipe "ls -l", get the permission string that represented the file in question. Translate the string of 'r's 'w's 'x's '-'s into 0s and 1s then convert it from binary to octal. This seems really cumbersome and annoying and I gotta figure there is some faster way. Even getting a string representation of the octal value would be great. I'm working in C on a linux environment btw. Ideas? Thanks!

Member Avatar
Member Avatar
+0 forum 2

Hi I want to change the permission of a registry key , and I want to set it as a read only... How can I do that ??? I tried this way, but it doesn't change anything, also it doesn't give me anything. like nothing is happened... [CODE]RegistryPermission rp = new RegistryPermission(RegistryPermissionAccess.Read, "HKEY_LOCAL_MACHINE\\SOFTWARE\\paci_1\\identity\\ASPNET_SETREG"); rp.AddPathList(RegistryPermissionAccess.Read, "HKEY_LOCAL_MACHINE\\SOFTWARE\\paci_1\\identity\\ASPNET_SETREG");[/CODE] am I missing anything ?? also, how can i specify it if I want it for a user or administrator or owner ...etc ?? Thanks alot....

Member Avatar
Member Avatar
+0 forum 2

My friend has two HP desktop computers running Windows XP (SP3) in his living room and entertains many, many guests daily. Guests who do not usually carry laptop/netbook with them are allowed access to these computers and their internet connections without much supervision. Most of said users are very respectful of their privileges and limit their usage mostly to checking emails, updating Facebook/MySpace/Twitter, etc., or playing games (either already installed or online) without downloading more apps and toolbars or worse. I have for months been acting as an ad hoc administrator, handling antivirus/malware scanning, updates, fixing crashes. I am by …

Member Avatar
Member Avatar
+0 forum 1

what I'm trying is to write program that accepts list of user as its argument 1- If a user or more are given as arguments, the script should reset files permissions as follows: a. Directory ~/share to 750 (if it exists). b. All regular files inside ~/share to 744. c. All directories inside ~/share to 750. d. All other regular files in ~ to 600 and all other directories in ~ to 700. e. files of other types are left as they are. We assume that there is only one level of files and directories inside ~ (except for ~/share), …

Member Avatar
+0 forum 0

The End.